htaccess to send www to non www not working
I’ve added the two different types of code to my .htaccess file to send www traffic to the non-www domain.
Each version works fine for the index but all other pages get redirected to the index then as well.
For example, if I type http://www.example.com it automatically goes to http://example.com, which is what I want. But if I type http://www.example.com/catagory/blog_post it gets redirected to http://example.com/index.php.
All the codes I have found on-line to fix the www non-www canonical issue does this.
What code do I use to redirect all traffic to the corresponding non-www URL, not just the index.
- The topic ‘htaccess to send www to non www not working’ is closed to new replies.