thinkphp Remove the index.php (? s=) from the URL, thinkphpindex.php
For example, your original path is http://localhost/test/index.php/home/goods/index.html, so now the address is http://localhost/test/home/goods/. How does index.html remove index.php?
The mod_rewrite.so module is loaded in the 1.httpd.conf configuration file//in Apache to configure the #LoadModule rewrite_module modules/mod_rewrite.so remove the front siren
2.AllowOverride None speak none change to all//in Apache to configure (note other places allowoverride also all set to all) allowoverride None Change Allowoverri De all Options None Order allow,deny .
3. Make sure the config.php inside configuration item Url_model is set to 2 return Array (' url_model ' = ' 2 ',);
4. htaccess file must be placed in the project and directory under this file add: rewriteengine on Rewritecond%{request_filename}!-d rewritecond%{request_file NAME}!-f Rewriterule ^ (. *) $ index.php/$1 [qsa,pt,l]
thinkphp URL Rewrite, how to remove indexphp
A. htaccess file is built under the project, and the. htaccess is the file name, preceded by a small dot, with the contents
Rewriteengine on
Rewritecond%{request_filename}!-d
Rewritecond%{request_filename}!-f
Rewriterule ^ (. *) $ index.php/$1 [qsa,pt,l]
</IfModule>
When using thinkphp, how can I just remove the indexphp URL path?
. htaccess File Codes
Deny from all
</Files>
Redirect permanent/index.php/
Order Deny,allow
or refer to ThinkPHP3.0 full development manual 16.2 hidden index.php
http://www.bkjia.com/PHPjc/849148.html www.bkjia.com true http://www.bkjia.com/PHPjc/849148.html techarticle thinkphp Remove the URL inside the index.php (? s=), thinkphpindex.php for example, your original path is http://localhost/test/index.php/home/goods/ Index.html So now the address is Http://lo ...