Перенаправление редирект с помощью .htaccess


RewriteEngine On
RewriteCond %{HTTP_HOST} ^olddomain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.olddomain.com$
RewriteRule (.*)$ http://www.newdomain.com/$1 [R=301,L]

Redirect 301 /old/old.htm http://www.domain.com/new.htm

Leave a Reply

Your email address will not be published. Required fields are marked *