Most affordable 24×7 server management plan including 24×7 monitoring, security audit and much more  Server Management Services 

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 ^/?$ http://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/blog/redirect-maindomain-with-all-its-parked-domains-to-a-subdomain/

Hope this helps.

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