我出錯(cuò)了不知道怎么解決這個(gè)問題
為什么到了改變url的時(shí)候我就跟不上了,就改變成/index/user的地方,頁(yè)面顯示FILE: D:\upupw\htdocs\myproject\ThinkPHP\ThinkPHP\Lib\Core\App.class.php LINE: 159
為什么到了改變url的時(shí)候我就跟不上了,就改變成/index/user的地方,頁(yè)面顯示FILE: D:\upupw\htdocs\myproject\ThinkPHP\ThinkPHP\Lib\Core\App.class.php LINE: 159
2015-04-30
舉報(bào)
2016-01-06
是隱藏index.php這塊么?如果是的話,就3個(gè)步驟1,Apache服務(wù)器配置文件httpd.conf啟用rewrite模塊 2.將配置文件中AllowOverride None屬性改為All 3.在入口文件index.php 同級(jí)目錄下新建.htaccess文件 文件內(nèi)容:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
4.重啟apache