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 www.something.com/ instead of www.something.com/thisthing.html, which is what I want. Is there any way to achieve this effect? Thanks for the help!

1 Answer 1


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\/$1" [R=301,L]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.