There are 2 domains ab.ru and ab2.ru and they are tied to the same site files. How to correctly register correctly so that all pages of the form ab2.ru/one redirect to ab.ru? Now spelled as follows:

RewriteEngine On RewriteCond %{HTTP_HOST} ^ab2\.ru RewriteRule (.*) http://ab.ru/$1 [R=301,L] 

    2 answers 2

    To ab2.ru/one redirects, add a rule like this:

     RewriteRule ^one/(.*) http://ab.ru/$1 [R=301,L] 

      There are 2 domains ab.ru and ab2.ru and they are tied to the same site files

      If they are tied, they are aliases, then nothing needs to be done. VP itself will do everything (if the addresses in its settings are specified correctly)