How to NOT set Regex (4 posts)

  1. skcsknathan001
    Posted 4 years ago #

    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.



  2. twlack
    Posted 3 years ago #

    Did you ever figure this out? Having the same issue.


  3. skcsknathan001
    Posted 3 years ago #

    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 ;-)

  4. Patrick Brown
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Redirection
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic