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 to

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^$ [OR]
RewriteCond %{HTTP_HOST} ^$
redirectMatch permanent ^/?$

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,

Hope this helps.

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


[button size=”large” color=”green” title=”Server Administration Services from Stack Supports” link=””]View Server Administration Packages[/button]