抱歉,但我'少了解關於URL重寫......如何使url重寫apache沒有任何重寫條件?
我想我的URL重寫來自:
http://localhost/controller/index.php/user/edit
到
http://localhost/controller/user/edit
我可以用這個的.htaccess使其:
RewriteEngine On
RewriteBase /controller/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [PT,L]
但是,重寫工作,如果沒有文件在controller/user/edit.php
存在,我想在我controller/xxx
到每個請求rewrited到controller/index.php/xxx
該文件是否存在或不....
我已經刪除RewriteCond
所以我目前的一個是這樣的:
RewriteEngine On
RewriteBase /controller/
RewriteRule ^(.*)$ index.php/$1 [PT,L]
但是,它顯示internal service error
..