Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Apache
Posted by: Dmitriy Lanets
Added: Mar 11, 2020 6:45 AM
Views: 133
Tags: apache
  1. RewriteCond %{HTTP_HOST} ^old-site\.ru$ [NC]
  2. RewriteRule ^(.*)$ http://www.site.ru/$1 [R=301,L]