: Naked domain subdirectories/files redirect to root www I have a 301 Redirect setup for my naked domain (something.com) to redirect to the www subdomain (www.something.com). However, I'm running
I have a 301 Redirect setup for my naked domain (something.com) to redirect to the www subdomain (www.something.com). However, I'm running into an issue I didn't foresee: when someone links to, for example, something.com/thisthing.html, it redirects to something.com/ instead of something.com/thisthing.html, which is what I want. Is there any way to achieve this effect? Thanks for the help!
More posts by @Miguel251
1 Comments
Sorted by latest first Latest Oldest Best
Try to set as below in your .htaccess file. This should help.
RewriteEngine on
RewriteCond %{HTTP_HOST} ^something.com$ [OR]
RewriteRule ^(.*)$ "http://www.something.com/" [R=301,L]
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.