Options -Indexes
RewriteEngine on
Options +FollowSymLinks
RewriteRule ^$ 2012/index.php [L]
RewriteCond %{DOCUMENT_ROOT}/2012%{REQUEST_URI} -f
RewriteRule .* 2012/$0 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* 2012/index.php$0 [QSA] #<-- this is wrong here, and gives 500 error
我試圖從2012子文件夾中服務所有我的網址。重寫從子域名服務的根訪問權限
我試過上面的腳本,它沒有像網址:
index.php/admin/controller/action?id=123
應該從子
2012/index.php/admin/controller/action?id=123
什麼是錯的解決?
當你請求'index.php/admin/controller/action?id = 123'時,你期望得到什麼? – 2012-04-08 20:22:17
我想從'2012/index.php/admin/controller/action?id = 123'服務。 – Pentium10 2012-04-08 20:42:42