Redirect Maindomain with all it’s Parked Domains to a Subdomain

Are you interested for monthly server support with Unlimited tickets, 24×7 monitoring, Security Audit and lot more ? please check our Monthly server support plans

Redirect maindomain with all it’s parked domains to a subdomain:

You can redirect the main domain with all it’s parked domains to another subdomain. Mostly people try this for increasing website hits and for running ads.

This can be done by using redirect codes, and those codes are needed to be placed on the .htaccess file.

Here we are implementing a code for redirecting the website iserversupport.com with it’s parked domains iserversupport.in , iserversupport.org to the subdomain iserversupport.com/serveradministration. The code is as follows,

RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} iserversupport.com
RewriteCond %{REQUEST_URI} !serveradministration/
RewriteRule ^(.*)$ serveradministration/$1 [L]
RewriteCond %{HTTP_HOST} iserversupport.in
RewriteCond %{REQUEST_URI} !serveradministration/
RewriteRule ^(.*)$ serveradministration/$1 [L]
RewriteCond %{HTTP_HOST} iserversupport.org
RewriteCond %{REQUEST_URI} !serveradministration/
RewriteRule ^(.*)$ serveradministration/$1 [L]

For your purpose you can use the same codes as above by replacing the domains and subdomain used in the above code by your required ones.

If you implement this properly on the .htaccess file then it will be redirect correctly.

Also to just redirect the main domain to a sub domain, visit the following link,

https://iserversupport.com/redirect-maindomain-to-a-subdomain-on-linux-server/

Need our help to fix the issue ? Submit Support Ticket Now

View Server Administration Packages

Leave a Reply

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