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?