![](/img/trans.png)
[英]Redirect from one folder to another folder on same domain using htaccess
[英].htaccess redirect all files in one folder to exact same in another folder
我們只需將名為“Music”的目錄中的每個頁面移動到名為“Information”的目錄中......這是唯一的變化。 頁面音樂有很多鏈接,我們不想打破它們。 我在重寫條件方面表現不佳....
基本上,我想要做的就是當用戶鍵入music / index.php,例如,或者music / life / mypage.php時,只需將其重定向到information / index.php或information / life / mypage.php。 ..只是從音樂變為信息。 我確實希望在URL框中顯示正確的URL(信息)。
......我很生氣。 我一直在努力讓這件事在下午完成!
使用反向引用這個:
RewriteRule ^foo/(.*)$ bar/$1
RedirectMatch ^ /富/酒吧/(.*) http://www.wherever.org/a/foo/bar/ $ 1
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.