I have this is current url pattern for a group of urls
which will be changing to
How do I use mod_rewrite to rewrite these urls to the new pattern using .htaccess file?
I have this so far but it is not working...
RewriteRule /assets/img/(.*) /assets/img/all_banners/$1 [R=301,NC,L,QSA]
Maybe the flags are wrong?
You can use this rule as your very first rule:
RewriteRule ^/?(assets/img)/([\w-]+\.[a-z]+)$ /$1/all_banners/$2 [R=301,NC,L,NE]
Make sure to clear your browser cache or use a new browser for testing.
© 2016 Powered by mzan.com design MATCHINFO