How i can redirect subdomain to website

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

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

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>

Can you be more explicit?

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?

This may help…

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