Optimise Web's Mass 301 Redirects for 404 Pages

  • Popularity Score 3577 Popularity Score

    Popularity ScoreReferrals to Site/Downloads

    0 0 1+ 1+ 250+ 250+ 1000+ 1000+ 10000+ 10000+

Set up bulk 301 redirects for 404 pages by uploading the URL data in a CSV file. No HTACCESS or DB changes!
Compatible with:
This extension is currently unavailable on Magento Connect. Please contact the developer.

You will be re-directed to the developer's website to complete your purchase.

You must be registered and logged in to get extension key.
In order to get this extension, you must be logged in to the Magento Community. Click here to login or register.

Magento Connect 2.0

Magento Connect 2.0

Previous Next

Optimise Web's Mass 301 Redirects for 404 Pages

Mass / Bulk Redirects (301, 302, or any status) for Magento 404 Pages

Magento has an internal URL Rewrite Management system. Magento can automatically add redirects for new and changed categories and products. However, it can be a laborious task to add all your custom redirects and/or redirects from an old website, one by one.

How does this module work?

Optimise Web's Bulk Redirects extension for Magento allows you to upload all your redirect data as a CSV file. This module is purely CSV file based (doesn't touch the database). Consider this as an alternative to adding 301 redirects into the .htaccess file.

When a missing URL is requested, Magento's routing system will first look within its database table for available rewrites. If Magento cannot find a suitable redirect, it will present your visitor with a 404 error page. This redirect module is set to work between Magento's internal check and the 404 page. When Magento cannot find a suitable redirect, this module will try and find one. If this module cannot find a matching redirect, the visitor will then be sent to the 404 page.

There are three methods of redirects that are available. They all work one after the other. The module implements a Best Match approach. If a matching redirect is found in the first method, Magento uses it and doesn't look at the rest of the CSV file or the remaining methods.

Method 1 - Legacy

I called this Legacy as it was the first option I wrote for this module. Many Magento retailers still use this option. I did not want their websites to stop working. So it is still here.

CSV Format:
Notice the semicolon. In the past, this module used a semicolon to separate the URLs. Please note that this option uses just a single cell of the CSV file in Excel.
A sample file is available here http://optimiseweb.co.uk/magento-modules/1-Legacy.csv

Method 2 - Redirects System v1.0

Many retailers were struggling with the semicolon and single cell based redirects. So, I made this into a three cell redirect.

CSV Format:
Notice the comma as a separator. I have now given an option for you to customise the delimiter / separator. Excel saves the CSV using commas. However, you can choose to use any character, even a pipe delimiter.
The status_code will be 301 or 302. Now this version on, you can define the status code (required for the redirects to work) as well.
Another big improvement to this module is the wildcard character. You can define a wildcard character in the options screen and use it in the CSV file.
e.g. http://www.oldurl.com/oldpath/*,http://www.newurl.com/newpath/newsublevel,301
This will match URL that follows http://www.oldurl.com/oldpath/ and redirect them all to http://www.newurl.com/newpath/newsublevel.
A sample file is available here http://optimiseweb.co.uk/magento-modules/2-Redirects.v1.0.csv

Method 2 - Query String Based Redirects

The query string based option was developed primarily for retailers moving away from old school ecommerce platforms that used query strings in their URLs. It can also be used by existing Magento retailers who have deleted a product attribute, stopped a Google Adwords campaign, etc.

CSV Format:
The settings, delimiter, wildcard options are similar to Method 2.
The second column is the query string name and the third column is the query string value.
e.g. http://www.oldurl.com/oldbasepath,prod_id,170,http://www.newurl.com/newproducturl,301
This will match all of the following
Please Note: This module works on a best match basis. If you had a redirect setup for the cat_id query before the prod_id query, both the above URLs will redirect to the category page. This is because cat_id is the best match. If you setup prod_id before cat_id, then the product page would take priority. It is very rare that old ecommerce systems will call both the category id and product id in the same URL. However, I am just illustrating the best match scenario.
A sample file is available here http://optimiseweb.co.uk/magento-modules/3-QueryStringBasedRedirects.csv


- This module is widely tested and works on most standard Magento setups.
- If the module isn't working for you, you have most likely not followed the standard Magento module installation routine. Read the FAQs below.
- Before leaving negative feedback or writing an email to us, please check the following - Turn Off Compilation Before Installation, Clear Cache After Installation, Log Off and Log Back Into the Admin
- 99% of the time, when users install the module and it doesn't work, we investigate and find out that there are other problems (server issues, file and folder permissions, conflicting modules, etc.).
- Please note that this is a very useful, but free module. We cannot be doing email ping pong all day long. If you need us to look into a problem, send us a private message with your Magento admin (with full access rights) password and FTP details. Without this we will have to embark on a email ping pong and that takes a lot of time. We hope you will understand.
- Thank you very much for taking time to use our module.


- If you disable a product in Magento and add a redirect for that product via this module, the redirect will not work as according to Magento the product is still in the system. You will have to delete the product for the redirect to work. I'll look into finding a work around for this.

Download and Upload of CSV
- Using the system configuration panel. System > Configuration > Optimise Web (tab) > Mass 301 Redirects
- Always remember to download the previously uploaded CSV and add new redirects to it. Uploading a new CSV will overwrite the old CSV and you will lose all previously uploaded 301 redirects.

Frequently asked questions

1. Why am I not seeing the system settings? Why am I getting a 404 error?

As with the installation of all Magento modules, please clear the cache folders and log out of the admin area and log back in. Please also flush your CSS and JS caches - just to be sure.

2. Should I backup Magento's files and database?

This module does not add or make database changes during the install process. But yes, please make it a point to backup your files and database before installing or upgrading any Magento module.

3. Will the module work with compilation turned on?

Yes. Still, make sure you disable compilation when installing the module. You can turn on compilation after installation and clearing the cache folders.

4. Do you offer support for this extension?

This is a free extension and support will be limited. We have placed a support link on the settings page of the module. Please write to us and we'll do our best to help you out.


To be able to develop the module further and provide better support, we capture your Magento version, module version, admin URL and admin email address when you access the admin > module settings page. We do not share this data with anyone. We do not use this data to send you marketing communication. We do this purely for support and statistical purposes.

If you do not agree to this, please do not install the module. Or, write to us to request a bespoke version of the module.

M1 Extension Versions

Feature Update

2015-11-14 15:03:40
  • Version number: 0.3.5
  • Stability: Stable
  • Compatibility: 1.5, 1.6, 1.6.1,, 1.7, 1.8, 1.8.1, 1.9, 1.9.1, 1.9.2
You must be registered and logged in to get extension key.

Magento Connect 2.0

Magento Connect 2.0

* Added a check for not visible product URLs
* Removed module and Magento version reporting
* However, module and Magento version will be sent via query string to the support link

Minor Update

2015-06-19 09:07:25
  • Version number: 0.3.2
  • Stability: Stable
  • Compatibility: 1.5, 1.6, 1.6.1,, 1.7, 1.8, 1.8.1, 1.9
You must be registered and logged in to get extension key.

Magento Connect 2.0

Magento Connect 2.0

* Minor update to disabled products and categories URLs * Removed reporting of admin url and email * The module reports the module and Magento version for me to know about compatibility


2015-05-20 10:58:57
  • Version number: 0.3.0
  • Stability: Stable
  • Compatibility: 1.5, 1.6, 1.6.1,, 1.7, 1.8, 1.8.1, 1.9
You must be registered and logged in to get extension key.

Magento Connect 2.0

Magento Connect 2.0

Added functionality to redirect disabled categories and products

Tidy up

2014-12-15 12:32:54
  • Version number: 0.2.3
  • Stability: Stable
  • Compatibility: 1.5, 1.6, 1.6.1,, 1.7, 1.8, 1.8.1, 1.9
You must be registered and logged in to get extension key.

Magento Connect 2.0

Magento Connect 2.0

Tidy up

Minor Update

2014-10-17 15:06:14
  • Version number: 0.2.2
  • Stability: Stable
  • Compatibility: 1.5, 1.6, 1.6.1,, 1.7, 1.8, 1.8.1, 1.9
You must be registered and logged in to get extension key.

Magento Connect 2.0

Magento Connect 2.0

Added additional event - before exit
1 2 3

Does the extension work on multisite installation?

I installed the extension on a multisite with 3 websites sites. I upload the CSV-file via the admin. It uploads but there is no link to it for download with the text. "No CSV file for download" I checked the Media folder in the server and the files are there residing in media/optimiseweb/redirects/websites/ -> the the corresponding site ID (1, 3, 4). Within these folder are the uploaded CSV-files. I would appreciate if you could answer as soon as possible. Regards Patricio
Asked by: Anonymous
This has now been fixed in the latest version. You can no upload redirect files at the website or store level. The download link will appear at each of these levels.
Answered by: OptimiseWeb
Date published: 2013-12-18

I didn't see any change!

Hello, First of All thanks for this cool module but I downloaded all effected URL's and make 3 cells pattern according to Redirect v1.0 pattern. I uploaded the file but still the 404 pages are not redirecting to the new path. Is there any mistake I'm doing? Thanks in advance for help.
Asked by: mubashar542
https://github.com/vkathirvel/Magento-Extension-Redirects/wiki The module's wiki might help you.
Answered by: OptimiseWeb
Date published: 2016-02-10

Should i remove all lines in URL Rewrite Management

Hi, should i remove al lines in section Catalogs -> URL Rewrite Management, before i use this? Thanks
Asked by: liefzebraatje
You could. The URL Rewrite Management interface is for Magento's internal use. It saves the SEO friendly URLs for all the product and category pages. Also, third party modules might use it. So, check what you are deleting, before you do so.
Answered by: OptimiseWeb
Date published: 2014-06-05

It doesn't work with status code 410 redirects, how can I fix it?

It does redirect with 410 status code but if I check with a online checker, then it does return 302 instead of 410. Example: http://domain.com/rewrite-test,http://domain.com/redirected-test,410 Your help will be much appreciated!
Asked by: mkdehaan
The module hooks into Magento's redirection system. If Magento's redirector can support 410, the module will send the 410 signal. Sorry, I haven't got enough time to test and try this for you.
Answered by: OptimiseWeb
Date published: 2016-11-26

Can it help us in setting 301 redirects from old website url to new website url? how can that be done

suppose my old website url is https://www.domain.com/category-sandal/product-sandal-medium/ and now my new url is https://www.domain.com/footwear/sandal/sandal-medium/
Asked by: Omair Nalkhande
https://github.com/vkathirvel/Magento-Extension-Redirects/wiki The module's wiki might help you.
Answered by: OptimiseWeb
Date published: 2016-02-10

Does Optimise Web's Mass 301 Redirects for 404 Pages work on Enterprise?

Wanting to use it on EE Magento ver.
Asked by: peeveezee
It's not been tested, but I have seen a few people use it. Feel free to try it in a dev. environment and let me know!
Answered by: OptimiseWeb
Date published: 2016-11-26

Can I use multiple wildcards?

I have old URLs with multiple optional sections, that I'd like to redirect automatically. Can I use multiple wildcards in a single rule? E.g.: Old urL: http://example.com/category/sku:123/subcategory Can I match that with: http://example.com/*/sku:123/* ? Thanks --
Asked by: tc4mpbell
There isn't a provision for multiple wildcards at the moment. You can easily modify the app / code / community / Optimiseweb / Redirects / Model / Redirector.php file to make it do something else. Be sure to copy it to local.
Answered by: OptimiseWeb
Date published: 2014-02-26

Does Google Count the 404

Since your extension depends on the redirect first issuing a 404, I'm wondering if Google still registers the 404 and penalizes the listing for it. Can you please clarify? Thanks, GDB
Asked by: GigaDrillBreak
The 404 does not get sent to the browser. The module looks for the 404 route and catches the request before hitting the 404 response. If the module cannot find a match, then it allows the request to land on the 404 page.
Answered by: OptimiseWeb
Date published: 2016-11-26

Can I use relative URL's?

Is there a way to use relative URL’s, so my development site doesn’t break once it goes live? So I’d like to do :- /oldpage.html, /newpage.html, 301 I have tried using wildcards :- */oldpage.html, */newpage.html, 301 And :- */oldpage.html, http://www.newsite.com/newpage.html, 301 But nothing I have tried works. Using full URL’s, the module works fine. However, updating the file once the dev site is live is just one more thing I will forget to do, so I’d rather not have to if possible. Thanks in advance.
Asked by: onlyteesin
https://github.com/vkathirvel/Magento-Extension-Redirects/wiki The module's wiki might help you.
Answered by: OptimiseWeb
Date published: 2016-02-10

Case Insensitive Matches

We used no case [NC] in our old htaccess. Do you see any issues with changing line 155 of Redirector.php to: if (strcasecmp($sourceUrl, $requestUrl) == 0) { instead of if ($sourceUrl == $requestUrl) { ?
Asked by: PlacementEdge
You can surely do that! Please remember to copy the files into the local code pool to avoid updates of the module overwriting your changes.
Answered by: OptimiseWeb
Date published: 2014-04-24
  • y_2017, m_2, d_26, h_22CST
  • bvseo_bulk, prod_bvqa, vn_bulk_0.0
  • cp_1, bvpage1
  • co_hasquestionsanswers, tq_14
  • loc_en_US, sid_14830, prod, sort_[SortEntry(order=LOCALE, direction=DESCENDING), SortEntry(order=FEATURED, direction=DESCENDING), SortEntry(order=NUM_ANSWERS, direction=DESCENDING)]
  • clientName_magento
Get Help

Support for This Extension

The best place to start if you need help with a specific extension is to contact the developer. All Magento developers have both a contact email and a support email listed.

Magento Platform Support

If you need support for a Magento platform, there are different options for support depending on which Magento platform you are using. Below are links for specific platforms.


About the Developer

This extension was developed by and is supported by OptimiseWeb

Optimise Web's Mass 301 Redirects for 404 Pages is rated 4.6 out of 5 by 59.
Rated 5 out of 5 by from as advertised Works perfectly with an uploaded csv file of more than 3,500 redirects. Support was super fast and knowledgable
Date published: 2015-04-17
Rated 1 out of 5 by from Save your time it does not work Never worked. We followed all their instructions to the T and all the instructions to get it to work. Our store is 1.9. It just does not work. I wanted it to work but sadly it did not and is a waste of time.
Date published: 2015-04-14
Rated 5 out of 5 by from Does what it say's without problems Works as described on CE 1.9.1. Only had a small problem with the install because I forgot to disable the compilation process. I asked support what they thought the problem would be and had a response within the hour. Thanks! -Paul Johnson
Date published: 2015-04-02
Rated 5 out of 5 by from Works like a charm! Hi, this extension works great out-of-the-box. Thanks for your help!
Date published: 2015-04-01
Rated 5 out of 5 by from great product, great developer its a shame that I don't go back and write reviews for products that I rely on for everything. This is one of those products. It does what it says, answers a real need in Magento and simplifies managing 301 redirects. I also use their EU / UK cookie notice module and it works great too.
Date published: 2015-02-26
Rated 5 out of 5 by from Great! It was saying Community Edition but it did work fine with EE 1.12.
Date published: 2015-02-03
Rated 5 out of 5 by from Awesome! Works great. Awesome support! we are going to use it for all our clients.
Date published: 2014-11-20
Rated 5 out of 5 by from Simple as ABC and a great support Easily installed and works like a charm if we follow instructions I had a little problem of misunderstanding and I got an answer from the support in less than an hour! Worth trying
Date published: 2014-11-17
Rated 3 out of 5 by from Not show link as redirected Hello I install this extension but it doesn't redirect the urls. I install in localhost and my test server also. Here is my csv file format http://s356804224.onlinehome.us/dev1/whitelotusau/index.php/skin-needling-roller,http://s356804224.onlinehome.us/dev1/whitelotusau/index.php/acupressure-mat,301 And for localhost http://localhost/magento_11/index.php/about-magento-demo-store/,http://localhost/magento_11/index.php/customer-service/,301 Please navigate me what mistake i done And give me correct format. Thanks
Date published: 2014-11-14
Rated 5 out of 5 by from Great Tool! Does exactly what it says it'll do, and made my life so much easier. The developer even went as far as to assist me with an issue we were having on our end with the install and fixed it!
Date published: 2014-10-17
  • y_2017, m_2, d_27, h_1
  • bvseo_bulk, prod_bvrr, vn_bulk_0.0
  • cp_2, bvpage2n
  • co_hasreviews, tv_0, tr_59
  • loc_en_US, sid_14830, prod, sort_[SortEntry(order=FEATURED, direction=DESCENDING), SortEntry(order=SUBMISSION_TIME, direction=DESCENDING)]
  • clientName_magento

In order to upload extension, you must be logged in to the Magento Community. Click here to login or register.



* Required Fields

Close window

Forgot Your Password?

Please enter your email below and we'll send you a new password.

* Required Fields

Close window


To upload extension you must be logged in.

* Required Fields

Close window

You are using an outdated browser

We built Magento Connect using the latest techniques and technologies.
This makes Magento Connect faster and easier to use.
Unfortunately, your browser doesn't support those technologies.
Use the links below to download a new browser or upgrade your existing browser.