1
我希望能夠使用htaccess更改根目錄。我希望能夠使用htaccess更改根目錄
我想這一點:
index.php/user/user_postdetail/index/14
要成爲這樣的:
index.php/post_14.html
我嘗試使用
RewriteRule post_([0-9]+).html$ /index.php/user/user_postdetail/index/$1 [L=301,R]
但我得到它扭轉。有任何想法嗎?
的index.php/post_14.html這裏的14號是動態的。確切的頁面是index.php/user/user_postdetail/index/14。這個頁面必須重定向到index.php/post_14.html – sreelatha