301 Redirects With X-Cart Clean URLs

Category: X-Cart Snippets
Enter Price $
SKU SKU8211222

How to redirect an old URL to a new URL (for when using the X-Cart Clean URLs module) ...

In .htaccess before...

RewriteCond %{ENV:REDIRECT_STATUS} !^401$

For each URL, insert...

RewriteRule ^old_url.html$ http://www.store.com/new_url.html [R=301,L]

Or at the end of .htaccess insert...

RewriteRule 301 /old_url.html http://www.store.com/new_url.html
The website uses cookies to allow us to better understand how the site is used. By continuing to use this site, you consent to this policy.
More Information