cancel
Showing results for 
Search instead for 
Did you mean: 

Magento overrides custom category URL rewrites after reindex

Magento overrides custom category URL rewrites after reindex

Hi all,

 

I'm having an issue with Magento overriding custom category URL rewrites after I reindex the "Catalog URL Rewrites". Im using these custom rewrites to redirect categories from the main navigation to custom pages.

 

Here are the steps I take:

  • Find the system category rewrite
  • Delete it
  • Create a custom rewrite using the same ID path, Old Request Path and the Page Url as the target path

               ID Path: category/2

               Request Path: resources/videos/product-videos

               Target Path: product-videos

               Permanent 301 redirect

 

But if I reindex the Catalog URL Rewrites it overrides them and creates a new system url rewrite.

 

Here are my questions:

  1. Is there any way to fix this?
  2. Is there any time where I'd need to reindex the Catalog Url Rewrites? I only reindexed it this time because I removed the .html suffix from products and categories. So if it's something that doesn't need to be reindexed I'll just keep that in mind and never reindex it.

 

Thanks!