我有网站与这个域名example.com和文件像这样的example.com/example.php如何将所有文件重定向到其他网站有相同的域名,但在不同的扩展名,所以它将重定向example.com/example.php到example.net/example.php与htaccess?非常感谢!
发布于 2016-03-01 13:59:00
试试这个:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !newdomain.com$ [NC]
RewriteRule ^(.*)$ http://newdomain.com/$1 [L,R=301]https://stackoverflow.com/questions/35715639
复制相似问题