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 https://www.example.com it automatically goes to https://example.com, which is what I want. But if I type https://www.example.com/catagory/blog_post it gets redirected to https://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.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘htaccess to send www to non www not working’ is closed to new replies.