1
我想从http或https重定向到一个新网站。htaccess从https获得重定向404
RewriteEngine On
RewriteBase/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
Redirect /abc https://www.newdomain.com/abc
该工程─http://www.olddomain.com/abc
不过这样会404- https://www.olddomain.com/abc。
对不起。我认为我原来的解释不够好。只有几页重定向到新网站而不是整个旧网站。我会尝试你的解决方案,只需要为每个页面添加一个rewriterule。 –