Здесь показаны различия между выбранной ревизией и текущей версией данной страницы.
mod_rewrite [2015/10/30 13:57] rech [Переадресация запросов] |
mod_rewrite [2015/10/31 00:29] (текущий) rech [Переадресация запросов] |
||
---|---|---|---|
Строка 42: | Строка 42: | ||
RewriteEngine On | RewriteEngine On | ||
RewriteBase / | RewriteBase / | ||
- | RewriteCond %{HTTPS_HOST} . | + | RewriteCond %{HTTP_HOST} . |
- | RewriteCond %{HTTPS_HOST} !^new-domain\.com [NC] | + | RewriteCond %{HTTP_HOST} !^new-domain\.com [NC] |
RewriteRule (.*) https://new-domain.com/$1 [R=301,L] | RewriteRule (.*) https://new-domain.com/$1 [R=301,L] | ||
</code> | </code> |