I’ve got this rewrite in my .htaccess:
RewriteCond %{HTTP_HOST}%{REQUEST_URI} ^domain.com/$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [r=301,nc]
Which works fine for domain.com but doesn’t redirect the URL with something after the /
(domain.com/something.php should redirect to http://www.domain.com/something.php)
How can this be done?
Thanks in advance!!
check it out