2013-07-13 38 views
0

我的.htaccess正在測試,我已經添加了以下命令。國防部重寫惠普multipe變數

Options +FollowSymLinks +Indexes 
RewriteEngine on 
RewriteBase/
RewriteRule ^Categorie/([^.]+)$ test/index.php?p=$1 [L] 

如果我支票P的指數白衣網址domain.com/test/Categorie/1 我得到demo1的。

如果我這樣做domain.com/test/Categorie/1/somename/ 我得到一個404錯誤。

在互聯網上的每一個地方,我都爲我的問題找到了解決方案,但足夠堅強我無法得到它的工作,因爲我一直在收到這個問題。

回答

0
RewriteRule ^c([0-9]+).*\.html test/index.php?c=$1 

是我用來解決它的。