htaccess redirect question
site/canine/gallery/v/restofpath
to site/gallery/v/canine/restofpath
Does anyone have any suggestions for this? I've tried doing simple folder rewrites and that doesn't seem to do the trick.
Thank you
2 Replies
This is what I've tried so far.
RewriteCond %{HTTP_HOST} ^/canine/gallery/v/$ [NC]
RewriteRule ^(.*)$
RewriteRule ^canine/gallery/v/(.*)$ gallery/v/canine/$1 [R=301,NC,L]
RewriteRule ^canine/gallery/v/$ gallery/v/canine/$1 [R=301,NC,L]
Redirect permanent /canine/gallery/v/
RewriteRule ^canine/gallery/v/(.*) /gallery/v/canine/$1 [L,R=301]
trys to work redirects to
RewriteRule ^canine/gallery/v/ /gallery/v/canine/$1 [L,R=301]
Works to redirect just the line canine/gallery/v/ but anything of the form canine/gallery/v/restofurl gives a generic link broken server reply