Support » Plugins and Hacks » Redirection » Regex redirection

  • Resolved CarolWP

    (@carolwp)


    I am trying to redirect URLS from an old PHP-Nuke site to a new WordPress site. In some instances, I am just redirecting from one URL (/modules.php?name=415) to another (/charts/maximums/), and everything is working fine. However, in other instances I want to redirect anything that starts at a particular PHP-Nuke module to another URL. For example, I want /modules.php?name=Downloads to go to http://someurl.com, regardless of what follows Downloads. So, for example, /modules.php?name=Downloads&d_op=viewdownload&cid=1 should still go to http://someurl.com.

    I tried to set this up with a regex to have /modules.php?name=Downloads(.*) redirect to http://someurl.com (checking the box for using regex), but that is not working. Can anyone tell me what I should be using instead?

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

Viewing 1 replies (of 1 total)
  • Never mind–I got it! For anyone else with this issue, the source URL should be:

    ^/modules.php\?name=Downloads(.*)

Viewing 1 replies (of 1 total)
  • The topic ‘Regex redirection’ is closed to new replies.