WordPress.org

Ready to get started?Download WordPress

Forums

Redirection
CSV import without Regex (7 posts)

  1. stillingen
    Member
    Posted 1 year ago #

    Hi.

    Thanks for a great plugin. I am trying to import a CSV file using '<source url>,<destinationurl>', and I have also tried importing using a previously exported file, pasting my new entries in to that. The import works, but all redirects are marked as Regex. I would like to import without all my entried been registered as Regex. Is there a way around that?

    Haakon

    http://wordpress.org/extend/plugins/redirection/

  2. michelelougheed
    Member
    Posted 1 year ago #

    I managed to import a csv file of 607 redirects, none marked as regex.

    Windows comma-separated file
    format:
    cell A1: http://oldurl.com/old-article-link/
    cell B1: http://newurl.com/new-article-link/

    There should be some documentation around this on the plugin. Took me awhile to figure out how to mass import a list of redirects, but really easy once I knew the format.

  3. stramark.nl
    Member
    Posted 1 year ago #

    michele,

    can you post the content of the csv? because i could not generate the right csv.

    so can you post something like:

    /oldurl/,/newurl/,0

    ?

  4. stillingen
    Member
    Posted 1 year ago #

    I managed to import a csv file of 607 redirects, none marked as regex.

    Same format as I used. I ended up importing and removing Regex with mysql query.

  5. michelelougheed
    Member
    Posted 1 year ago #

    I'm actually having trouble importing with all marked as regex.

    I simply put old url in one cell, new url in cell beside. Next line for new redirect.

    A1: http://oldurl.com/whatever B1: http://newurl.com/whatever-new-link
    A2/B2: new redirect.
    A3/B3 etc

    Any ideas on how to get regex marked on import? Not keen on doing this manually...

  6. Shovan Sargunam
    Member
    Posted 1 year ago #

    I am having same issue.
    A1 - A26 : List of Source URL
    B1 - B26 : List of Target URL

  7. stillingen
    Member
    Posted 1 year ago #

    Any ideas on how to get regex marked on import? Not keen on doing this manually...

    If non of your entries are Regex, import them, and the search replace in mysql like this

    UPDATE wp_redirection_items SET regex = replace(regex, 1, 0);

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic