在 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/en/support.php、old-site.com/msg/ text.php 当我点击它时出现错误 ERROR 404。
如何将它们重定向到新域上的相同地址?old-site.com/support.php -> mynewsite.com/support.php, old-site.com/en/index.php -> mynewsite.com/en/index.php