×
×

Base De Connaissances & Téléchargements

La base de connaissance comprend la documentation écrite par notre équipe. Choisissez la catégorie où chercher les réponses

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