Support » Plugin: Redirection » [Plugin: Redirection] How to NOT set Regex

  • I’m trying to import about 1500 old links redirection.

    Now, when I import, it creates the redirection rules. It also sets the “Regex” flag. I think its mainly because my link looks like this:



    Is there a way to put a value in the CSV file so the import does not put the Regex flag?

    I tried exporting a set & non-set Regex redirection rules and the export file does not have any indication for Regex.


Viewing 3 replies - 1 through 3 (of 3 total)
  • Did you ever figure this out? Having the same issue.


    I think, in the plugin, you can also import to .htaccess syntax.
    I did that so now you have all your links in apache ReWrite rules. Just search & replace the regex part. I had a pattern in the urls. So it was easy to do the search & replace.
    I ended up not using the plugin, as now I have all the rewrite urls in .htaccess file – thanks to the plugin though 😉

    I was having trouble with this as well.

    I ended up doing a couple things to set them to non-regex.

    1. Created a specific group for the import
    2. Imported
    3. Used phpmyadmin to see the id of the group that I had created. Look in (your_prefix)_redirection_items.
    4. Did a mysql command to change regex to “0” instead of “1”

    Mine looked like this:

    UPDATE (my_prefix)_redirection_items SET regex=0 WHERE group_id = 4;

    Kind of a dumb way to do this, but it got the job done for me.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Redirection] How to NOT set Regex’ is closed to new replies.