我的問題是,如何使用htaccess規則刪除最後一個目錄。使用htaccess從URL中刪除最後一個目錄
http://mywedding.com/anandn/
should load content of
http://mywedding.com/anandn/theme/
OR
http://mywedding.com/mamtaandkuldip/
should load content of
http://mywedding.com/mamtaandkuldip/theme/
在此先感謝。
只需用'/'替換'/(.*/)$'?美元使它成爲url的最後一部分 – Martijn