ehime
ehime

Reputation: 8405

Pervasive URL rewrite?

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

Answers (1)

Croises
Croises

Reputation: 18671

You can use:

RewriteRule ^catalog/html_sitemap/(.*)$ http://%{HTTP_HOST}/catalog/seo_sitemap/$1 [L,NC,R=301]

Upvotes: 1

Related Questions