×
×

Knowledgebase & Downloads

The knowledgebase provides documentation written by our team. Please select a category or search for answers.

Articles

How to proxy main domain to subdomain?

If you want your domain.com and www.domain.com to serve the same contents as subdomain.domain.com then
both your domain.com and sub.domain.com should be pointed to the server's IP, setup on the server and should open. 
Make sure proxy module is enabled in your webserver (contact support if unsure). Then add to domain.com's .htaccess:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?domain.com$
RewriteRule ^(.*)$ http://subdomain.domain.com/$1 [P]


Powered by HostBill