标签:thinkphp .htaccess apache url php
1.配置apache的配置,,httpd.conf
#LoadModule rewrite_module modules/mod_rewrite.so //讲前面的#去掉
3.在项目配置文件里面配置
'URL_MODEL' => '2'
<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] </IfModule>
标签:thinkphp .htaccess apache url php
原文地址:http://blog.csdn.net/hearain528/article/details/40541639