THINKPHP16---pseudo-static

Source: Internet
Author: User

URL pseudo-static is usually to meet the better SEO effect, thinkphp support pseudo-static URL settings, you can set the parameters of Url_html_suffix at the end of the URL to add the static suffix you want, without affecting the normal execution of the current operation.

' Url_html_suffix ' = ' + '//If set to null, any form of suffix can be

You can set this to support multiple suffix names

' Url_html_suffix ' = ' html|shtml|xml '
You can set the URL suffix for forbidden access,
‘URL_DENY_SUFFIX‘ => ‘pdf|ico|png|gif|jpg‘, // URL禁止访问的后缀设置
‘URL_DENY_SUFFIX’的优先级要比‘URL_HTML_SUFFIX‘的高。

THINKPHP16---pseudo-static

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.