Last active
December 19, 2015 00:09
-
-
Save yireo/5866699 to your computer and use it in GitHub Desktop.
Manually delete all entries from the core_url_rewrites folder (make sure to reindex afterwards)
This file contains 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
<?php | |
require_once 'app/Mage.php'; | |
Mage::app(); | |
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); | |
$urlRewrites = Mage::getModel('core/url_rewrite')->getCollection(); | |
foreach($urlRewrites as $urlRewrite) { | |
$urlRewrite->delete(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment