Redirect Maindomain to a Subdomain on Linux Server

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 to a subdomain on linux server: 

You can add redirect for redirecting the maindomain to other subdomain.

For adding the redirect you need to edit the .htaccess file in document root of domain and add the code for redirect.

We will show a sample code to redirect the domain iserversupport.com to iserversupport.com/serveradministration

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^iserversupport.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.iserversupport.com$
redirectMatch permanent ^/?$ https://www.iserversupport.com/serveradministration

So this code in the .htaccess file will do the redirect. You can copy the same code and replace your domain and needed redirect place in the code and use for your purpose of redirect.

For redirect maindomain with all it’s parked domains to a subdomain visit the following link,

https://iserversupport.com/redirect-maindomain-with-all-its-parked-domains-to-a-subdomain/

Hope this helps.

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 *