Forcing a www in the URL
-
Recently I became interested in making it so that whenever someone visited my site without a www in it, the server would automatically fill it in for them. For example, if someone typed in gametabs.net, they would be redirected to https://www.gametabs.net instead. This is so search engines don’t get confused and list you twice.
I looked into a lot of htaccess stuff and that works for the most part except for one problem. If someone types in ‘gametabs.net/otherpage’ they get redirected back to the homepage https://www.gametabs.net, when I want them to be directed to https://www.gametabs.net/otherpage. I think this has something to do with wordpress, so I did some more searching and found a plugin (which can be found here) for wordpress that does basically the same thing but doesn’t mess with htaccess, and still no luck.
Is there a way I can make it so that no matter which page a user goes to, it just makes sure that theres a www in front of the URL?
- The topic ‘Forcing a www in the URL’ is closed to new replies.