[英]htaccess 301 redirect with different folder structure
提前感謝所有人,我認為我對此有所了解,但顯然沒有!
我正在使用htaccess重定向將網站永久移至新域
舊地址www.example.com/home/index.php
新地址www.example2.ie/index.php
我已經嘗試過使用RedirectMatch 301 ^ / http://example2.ie/,但最終卻獲得了http://example2.iehome/ .......之類的網址。
我該如何解決這個問題,我甚至可以通過以上方法正確解決嗎?
干杯
您應該使用:
RedirectMatch 301 ^/home/(.+)$ http://example2.ie/$1
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.