你能幫我.htaccess
嗎?我有簡單的代碼用於測試的子文件夾
Options -Indexes
RewriteEngine On
#RewriteBase/
# front controller
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !\.(pdf|js|ico|gif|jpg|png|css|rar|zip|tar\.gz)$ index.php [L]
AddType application/x-httpd-php .php .phtml
這段代碼是確定的,如果我用這一個在根文件夾(本地主機),但我需要在子文件夾,這裏是index.php文件過於服務器上測試該代碼。
我使用URL作爲http://domain.com/parameter/parameter
,但我現在需要使用http://domain.com/folder_test/parameter/parameter
謝謝您的回答。
什麼問題,有錯誤,沒有重定向?請用'參數'的例子來解釋。 .htaccess文件的位置,在根目錄或'folder_test'目錄中? – 2013-02-26 11:16:22