Redirect Subdomain of domain1 to subdomain of domain2

For example if we need to redirect to to

and to


#RewriteCond %{HTTP_HOST} ^(.*)$ [NC]

#RewriteRule ^(.*)$$1 [R=301,L]

but if we dont want to redirect to and only the subdomains then use

Use the following code

RewriteCond %{HTTP_HOST} ^(.*)\.sio-india\.org$ [NC]
RewriteRule ^(.*)$$1  [R=301,L]

Get More updates on your Email:

Related Articles

    This entry was posted in htaccess, SEO, Subdomain and tagged , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.