📜  htaccess 301 整个域 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:35.355000             🧑  作者: Mango

代码示例1
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !new-example.com$ [NC]
RewriteRule ^(.*)$ http://new-example.com/$1 [L,R=301]