Baza Wiedzy & Pliki Do Pobrania
Baza udostępnia dokumentację stworzoną przez nasz zespół. Wybierz kategorię lub wyszukaj odpowiedzi.
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]
- © 2016-2024 JVMHost.com All rights are reserved.