Title: [Plugin: Redirection] Unable to export CSV
Last modified: August 20, 2016

---

# [Plugin: Redirection] Unable to export CSV

 *  [lennel](https://wordpress.org/support/users/lennel/)
 * (@lennel)
 * [14 years ago](https://wordpress.org/support/topic/plugin-redirection-unable-to-export-csv/)
 * hi everyone,
 * i’ve just updated to the latest version of Redirection 2.2.13 and now i’m unable
   to export my wordpress redirections to csv. Clicking on the csv link in the modules
   page just shows me the page with all the redirections.
 * Can anyone help?
 * [http://wordpress.org/extend/plugins/redirection/](http://wordpress.org/extend/plugins/redirection/)

Viewing 15 replies - 1 through 15 (of 29 total)

1 [2](https://wordpress.org/support/topic/plugin-redirection-unable-to-export-csv/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-redirection-unable-to-export-csv/page/2/?output_format=md)

 *  [jmorti](https://wordpress.org/support/users/jmorti/)
 * (@jmorti)
 * [14 years ago](https://wordpress.org/support/topic/plugin-redirection-unable-to-export-csv/#post-2734550)
 * I am having the same problem. Someone please help!
 *  [cmegown](https://wordpress.org/support/users/cmegown/)
 * (@cmegown)
 * [14 years ago](https://wordpress.org/support/topic/plugin-redirection-unable-to-export-csv/#post-2734581)
 * We are also having a similar problem, when we click the CSV link we get a 404
   page with a url that looks like this:
 * sitename.com/wp-admin/redirection?page=redirection.php&sub=csv&module=1&token
   =
 * Please help!
 *  [exposedesign](https://wordpress.org/support/users/exposedesign/)
 * (@exposedesign)
 * [14 years ago](https://wordpress.org/support/topic/plugin-redirection-unable-to-export-csv/#post-2734583)
 * I’m having the same issue too – all I’m actually wanting to do is see what format
   it needs to be in order to import a list of redirects – does anybody have a sample
   csv they can post?
 *  [Cardoza](https://wordpress.org/support/users/cardoza/)
 * (@cardoza)
 * [14 years ago](https://wordpress.org/support/topic/plugin-redirection-unable-to-export-csv/#post-2734594)
 * I have exactly the same problem, since last update of Redirection plugin, I can’t
   export my modules to CSV, RSS, etc.
 * When I clic on any export option, I’m redirected to the groups section.
 * Send email to the creator of the plugin to notify of this big error and hope 
   he can fix it soon.
 * Contact page of the author: [http://urbangiraffe.com/contact/](http://urbangiraffe.com/contact/)
 *  [mike.ianni@outlook.com](https://wordpress.org/support/users/mikeiannikaleidicocom/)
 * (@mikeiannikaleidicocom)
 * [14 years ago](https://wordpress.org/support/topic/plugin-redirection-unable-to-export-csv/#post-2734610)
 * exporting works in version 2.2.5
    Steps to fix WordPress Redirection plugin export.
   1. Create an excel csv file that looks like this..
 * source target hits
    /contact/ [http://mydomain.com/](http://mydomain.com/) 0 /
   6/ /6-2/ 0 /blog/ [http://mydomain.com](http://mydomain.com) –
 * *you can leave the hits field blank if you want
    2. save all your redirections(
   hopefully you don’t have hundreds) 3. uninstall version 2.2.13. 4. install version
   2.2.5 and import your csv file (call it module_1.csv)
 * mike {dot} ianni {at} kaleidico {dawt} com
 *  [Chritchan](https://wordpress.org/support/users/chritchan/)
 * (@chritchan)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-redirection-unable-to-export-csv/#post-2734617)
 * I’ve exactly the same problem 🙁
 * `sitename.com/wp-admin/redirection?page=redirection.php&sub=csv&module=1&token
   =`
 *  [memelab](https://wordpress.org/support/users/memelab/)
 * (@memelab)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-redirection-unable-to-export-csv/#post-2734618)
 * also having trouble with exporting from v2.2.13
 *  [Chritchan](https://wordpress.org/support/users/chritchan/)
 * (@chritchan)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-redirection-unable-to-export-csv/#post-2734619)
 * I had to downgrade to 2.2.1O for export my datas 🙁
 *  [bmex63](https://wordpress.org/support/users/bmex63/)
 * (@bmex63)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-redirection-unable-to-export-csv/#post-2734628)
 * HI Everyone,
 * I was able to get it to work again by modifying the redirection.php file in the
   plugin folder.
 * Specifically lines: 198 to 208
 *     ```
       function inject() {
       		$options = $this->get_options();
   
       		if ( isset($_GET['token'] ) && isset( $_GET['page'] ) && isset( $_GET['sub'] ) && $_GET['token'] == $options['token'] && $_GET['page'] == 'redirection.php' && in_array( $_GET['sub'], array( 'rss', 'xml', 'csv', 'apache' ) ) ) {
       			include dirname( __FILE__ ).'/models/file_io.php';
   
       			$exporter = new Red_FileIO;
       			if ( $exporter->export( $_GET['sub'] ) )
       				die();
       		}
       	}
       ```
   
 * Save and then refresh the modules pages. You should be able to export successfully.
 * Cheers!
    Ben
 *  [lkraav](https://wordpress.org/support/users/lkraav/)
 * (@lkraav)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-redirection-unable-to-export-csv/#post-2734633)
 * I’m seeing this in error_log on export:
 * NOTICE: wp-content/plugins/redirection/models/match.php:28 – unserialize() [function.
   unserialize]: Error at offset 0 of 9 bytes
 *  [rashadow](https://wordpress.org/support/users/rashadow/)
 * (@rashadow)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-redirection-unable-to-export-csv/#post-2734636)
 * Just chiming in here to confirm that the fix suggested by bmex63 worked for me
   using Redirection 2.2.13 and WordPress 3.4 on my main site [http://silenciobarnes.com](http://silenciobarnes.com)
 * Replace `tools.php?page=redirection.php` with just `redirection.php`
 * After that I was able to export a CSV and view the RSS
 * As for the dude that asked about the CSV format, I had the same question – if
   you didn’t understand mike.ianni’s answer it’s like this
 * 3 Columns
    source | target | hits You don’t have to put anything into the hits
   column
 * I created a few test csv files and successfully uploaded them. The name of the
   file doesn’t matter.
 *  [Jared Pomranky](https://wordpress.org/support/users/jareddetroit/)
 * (@jareddetroit)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-redirection-unable-to-export-csv/#post-2734658)
 * Thanks bmex63 for the solution and rashadow for the clarification. This fix worked
   for me to get the module exported.
 *  [MCDIKS](https://wordpress.org/support/users/mcdiks/)
 * (@mcdiks)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-redirection-unable-to-export-csv/#post-2734682)
 * when i tried this in an csv file
 * 3 Columns
    source | target | hits You don’t have to put anything into the hits
   column
 * than it all comes in the “source” and nothing in Target and hits.
 * What is wrong.
 *  [JochenT](https://wordpress.org/support/users/jochent/)
 * (@jochent)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-redirection-unable-to-export-csv/#post-2734685)
 * Example CSV file:
 *     ```
       source,target,hits
       /category/people/free-time/,/category/people/hobbies/,0
       /category/home/kitchen/,/category/garden/flowers/,0
       ```
   
 * If you use regular expressions which contain a ‘,’ you have to enclose that phrase
   into `"..."`:
 *     ```
       source,target,hits
       "(?i)/news/docs/(\d{2,})\.pdf",/wp-content/uploads/2012/07/$1.pdf,0
       ```
   
 * This did work for me successfully.
 *  [Ogi](https://wordpress.org/support/users/ogenox/)
 * (@ogenox)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-redirection-unable-to-export-csv/#post-2734686)
 * Thanks [@bmex63](https://wordpress.org/support/users/bmex63/) for this fix.

Viewing 15 replies - 1 through 15 (of 29 total)

1 [2](https://wordpress.org/support/topic/plugin-redirection-unable-to-export-csv/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-redirection-unable-to-export-csv/page/2/?output_format=md)

The topic ‘[Plugin: Redirection] Unable to export CSV’ is closed to new replies.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

 * 29 replies
 * 26 participants
 * Last reply from: [boldwater](https://wordpress.org/support/users/boldwater/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/plugin-redirection-unable-to-export-csv/page/2/#post-2734717)
 * Status: not resolved