Reputation: 8405
Hey guys I have a URL rewrite below that works, unfortunately when using pagination the SEO portion of my url comes back and is not forced into a 301
RewriteRule ^catalog/html_sitemap/(.*)$ http://%{HTTP_HOST}/catalog/seo_sitemap/$1 [L,NC,P]
I tried the below code, but it was unsuccessful, what am I missing?
RewriteBase /
RewriteCond %{REQUEST_URI} ^catalog/seo_sitemap/(.*)$
RewriteRule http://%{HTTP_HOST}/catalog/html_sitemap/$1 [QSA,R=301,L]
Upvotes: 0
Views: 26
Reputation: 18671
You can use:
RewriteRule ^catalog/html_sitemap/(.*)$ http://%{HTTP_HOST}/catalog/seo_sitemap/$1 [L,NC,R=301]
Upvotes: 1