Question

website not redirecting to www.

My website loads fine at both “example.com” and “www.example.com” however I want it to always redirect to “www.example.com” everytime I believe I have my CNAME configured correctly as the HOSTNAME “www.example.com” is an alias for “example.com

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hey friend,

This can be done in a .htaccess file if mod_rewrite is enabled.

https://www.siteground.com/kb/how_to_redirect_nonwww_urls_to_www/

Jarland