Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • John Hodgkinson 613 posts 355 karma points
    Sep 30, 2014 @ 12:49
    John Hodgkinson
    0

    simple regex redirect

    I need to create a regex for all request from an old site to redirect to a new site... this should be a really simple thing but I'm sure I'm overlooking the obvious here...

    I basically want all request from old site:

    (http|https)://www.mysite.org$

    to redirect to:

    http://www.newsite.com

    that works, but the problem is child pages are appended to the end of the request resulting in a 404... for example:

    http://www.mysite.org/hello

    redirects to:

    http://www.newsite.org/hello

    whereas I just want it to go to:

    http://www.newsite.org

    Many thanks in advance!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies