1
停放以下條目舊域在htaccess的我的新網站(域名):如何在保留舊鏈接的同時將htaccess更改爲停放的域?
RewriteCond %{HTTP_HOST} ^(www.)?mynewsite.com$
RewriteRule ^(/)?$ mynewsite.com/index.php [L]
RewriteCond %{HTTP_HOST} ^old\-site\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.old\-site\.com$
RewriteRule ^/?$ "http\:\/\/mynewsite\.com" [R=301,L]
老鏈接,人們將享受: old-site.com/support.php,old-site.com /en/index.php,old-site.com/zh/support.php,old-site.com/msg/text.php 當我點擊它時,出現錯誤404錯誤。
如何重定向他們到新域的相同地址? old-site.com/support.php - > mynewsite.com/support.php,old-site.com/en/index.php - > mynewsite.com/en/index.php
當你說「停放」時,你有控制舊域名的'.htaccess'文件還是使用註冊商的停車功能? –