URL Rewrite Import/Export Module – Now on Github

I’m making another Magento extension available for free via Github. This module provides an easy interface to import/export Custom URL rewrites. As of the current version, please note that it does not import/export System rewrites.


If you are using 1.5.x+: Being that I developed this module on 1.4.x, the current package that you can download from Github will not work to install via the mage script. I would have to manually install it on 1.5 and then re-package it so that it’s a Magento Connect 2.0 package instead of a 1.0 package.

If you want to use this module, you’ll have to just unpackage it yourself. Inside, you’ll find 3 directories:

  • adminhtml – open it up, and copy the adminhtml/default/prattski/ directory into app/design/adminhtml/default/
  • modules – open it up and put Prattski_ImportRewrites.xml into app/etc/modules/
  • Prattski – put in app/code/community/
This entry was posted in Magento. Bookmark the permalink.

11 Responses to URL Rewrite Import/Export Module – Now on Github

  1. paul says:

    Great extension, easy install and just what i needed. Perfect for anyone working on SEO rewrites.

  2. Zuiko says:

    thank you first for this great idea and for this extension.
    Infortunately, using Magento I did’nt suceeded to install the extension via pear.
    I used first .pear and also Web & People: Extension Installer.
    With the file Prattski_ImportRewrites-1.1.1.tgz I obtained the following message :
    “Ignoring installed package magento-community/Prattski_ImportRewrites
    Nothing to install”
    So I copied the files in my magento installation as indicated (as I understood !) but at first I obtained a blank page using the menu catalog/URL rewrite import/export.
    At first I put the folder /adminhtml/default/prattski/template/importrewrites/ in /app/design/adminhtml/default/prattski/template/
    but changing it to /app/design/adminhtml/default/default/template/
    it works !

    Thank you.

  3. Ran says:

    Thank you very much bro… Works great…

  4. Tran says:

    Did you test with Magento 1.6?

    • Josh Pratt says:


      • Larry Sainte-Marie says:

        in Magento v1.6.2, the import works fine. the export gives the following error
        Fatal error: Call to a member function getCsvFile() on a non-object in …/public_html/app/code/community/Prattski/ImportRewrites/controllers/ImportexportController.php on line 52

  5. Mitch Hall says:

    How do you install it? I think your directory structure in the archive doesn’t conform to most plugins? Where does the pratski directory go? Also, aren’t you supposed to use /app/code/local instead of /app/code/community? I could be wrong about all this. I’m new to Magento development.

    • Josh Pratt says:


      It’s an actual packaged extension, not just a compressed file with the folder structure in it like most people do. When you take the time to actually properly package an extension, it adds a lot of benefits. The first is the ability to install it with one command, and the ability to easily uninstall it (without having to remember all the files that belonged to it).

      First, put the file in your Magento root directory. Then, if you are using Magento 1.4.x, use the following command: ./pear install filename.tgz

      If you are using Magento 1.5.x, use: ./mage install-file filename.tgz

      • Mitch Hall says:

        Awesome. Thanks. That makes things siginificantly easier. I wish all plugin authors would start using this.

        However, I’m getting the following error when I try to install it. I tried both 1.1.0 and 1.1.1 with the same error:

        install-file: Package file is invalid
        Invalid version, should be like: x.x.x
        Invalid stability
        Invalid channel URL
        Empty authors section
        Empty package contents section