Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
in Q2A Core by
My site accessible on both url, with www and without www, but this is bad for Google, Bing, Yahoo. So tell me How can i redirect Example.com to Www.example.com.
Q2A version: Latest

1 Answer

0 votes
I think this is more of a web server question rather than Q2A specifically, but of you're using apache2, you can use mod_rewrite to accomplish this.

See the Canonical Hostname section of this guide for your exact problem:


You can accomplish similar things with nginx and other reverse proxies as well.