Forked from antoinekociuba/gist:f136d817c22cd750dc252a4434cc72f4
Created
January 16, 2017 03:26
-
-
Save trabulium/e50de5884d740de83ae9e1dda48cfaed to your computer and use it in GitHub Desktop.
Flush Magento EE url rewrites (>= 1.13) + Rebuild
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SQL Query | |
SET FOREIGN_KEY_CHECKS = 0; | |
TRUNCATE TABLE `enterprise_url_rewrite_redirect_rewrite`; | |
TRUNCATE TABLE `enterprise_url_rewrite_redirect_cl`; | |
TRUNCATE TABLE `enterprise_url_rewrite_redirect`; | |
TRUNCATE TABLE `enterprise_url_rewrite_product_cl`; | |
TRUNCATE TABLE `enterprise_url_rewrite_category_cl`; | |
TRUNCATE TABLE `enterprise_url_rewrite`; | |
TRUNCATE TABLE `enterprise_catalog_product_rewrite`; | |
TRUNCATE TABLE `enterprise_catalog_category_rewrite`; | |
TRUNCATE TABLE `core_url_rewrite`; | |
SET FOREIGN_KEY_CHECKS = 1 | |
# Reindex CLI commands | |
php shell/indexer.php --reindex catalog_url_product | |
php shell/indexer.php --reindex catalog_url_category | |
php shell/indexer.php --reindex url_redirect |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment