Thinkphp removes index. php

Source: Internet
Author: User
Thinkphp remove index. php remove index. php in the URL? For SEO, the URL_REWRITE module must be enabled on the server. For the following configuration process, refer to: 1? The mod_rewrite.so module is loaded in the httpd. conf configuration file ?? # LoadModulerewrite thinkphp remove index. php

Remove index. php from the URL? For SEO, the URL_REWRITE module must be enabled on the server.
For the following configuration process, refer:
1? The mod_rewrite.so module is loaded in the httpd. conf configuration file.

?? # LoadModule rewrite_module modules/mod_rewrite.so remove the preceding alert code
2 ?? AllowOverride? None? Change None? All

?

? ? AllowOverride All

? ? Options None

? ? Order allow, deny

? ? Allow from all

3? Make sure that URL_MODEL is set to 2.

? Return Array (
? ? ? 'URL _ model' => '2 ',
? );
4. Place the. htaccess file in the same directory as the entry File (path: phpmyadmin \ libraries)

RewriteEngine? On
RewriteCond? % {REQUEST_FILENAME }?! -D
RewriteCond? % {REQUEST_FILENAME }?! -F
RewriteRule? ^ (. *) $? Index. php/$1? [QSA, PT, L]

Ps: You cannot create a file starting with a dot in windows. you can create a file first.

Then, in DOS, perform rename xxxx. xxxx ?? . Htaccess

?

On the first floor, Jocson 2011-11-22 does not know why I still do it. I have already followed your instructions. can you elaborate on it and help me correct it. Jocson 2011-11-22 on the second floor [img] [/img] zhong871004 2011-12-31 Jocson wrote [img] [/img]
Where is your problem?

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.