How i can redirect subdomain to website


#1

How would I add a subdomain like store.example.com that sends to www.website.com?


#2

You create the DNS record for that host and then a page rule to perform the actual redirect.


#3

Add a CNAME in the DNS for example NAME: static DOMAIN NAME: site.com

If you are using Apache Server then create a virtual host e.g.

<VirtualHost *:80>
  
  ServerAdmin [email protected]
  ServerName static.site1.com

  DocumentRoot /var/www/site1/public_html/static

  ErrorLog ${APACHE_LOG_DIR}/error.log
  CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

#4

Can you be more explicit?


#5

What was unclear about the instructions? It is two steps and you are done with it. What have you tried so far and where did you encounter issues?


#6

This may help…


closed #7

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.