I have a redirect problem with 'RewriteRule', i have this in mt .htaccess:
RewriteCond %{HTTP_HOST} ^foo.domain.com
RewriteRule ^(.*)$ http://www.domain.com/foo/$1 [R=permanent,L]
If i go to foo.domain.com redirect to www.domain.com/foo/ and it's ok, instead i go to foo.domain.com/bar i have an error, must go to www.domain.com/foo/bar.
Where is error?
Asked by stecog
(2341 rep)
Oct 3, 2014, 03:57 PM
Last activity: Jul 29, 2025, 07:10 PM
Last activity: Jul 29, 2025, 07:10 PM