Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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!
is working on a reply...
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.
Continue discussion
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!
is working on a reply...
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.