View previous topic :: View next topic |
Author |
Message |
mikem22 -
Joined: 26 Oct 2007 Posts: 13
|
Posted: Sun Oct 28, 2007 6:24 pm Post subject: URL Redirection |
|
|
Boy am I confused ..
I need to redirect one of my domains to point at another using a 301 redirect. On our old UNIX server, I just added
redirect 301 / http://www.newwever.com/
To the .htaccess file.
I understand that .htaccess can not be implemented on windows and is an Apache based file.
Looking at the Redirects options for the domain, I just have no idea what to put in these boxes (apart from the one that say 301 moved permanently.
If anyone could throw some light on this, it would be appreciated.
regex is not one of my stronger points, so please help!
Mike _________________ Mike Montgomery |
|
Back to top |
|
|
roganty -
Joined: 08 Jun 2004 Posts: 357 Location: Bristol, UK
|
Posted: Sun Oct 28, 2007 8:48 pm Post subject: |
|
|
Umm, I'm not sure if this will help you.
In the "Virtual Path Regular Expression" field put ^/.*
Set "If this rule matches" to "Perform an external redirection"
In the "Redirect to" field put the url to the new domain
Uncheck "Append Query String" (Not sure if this is needed or not)
And set "Next Action" as "Stop matching"
in condensed form
Code: | ^/.* -> Perform an external redirection -> http://newdomain.com -> Stop |
Hope that helps! _________________ Anthony R
Roganty | Links-Links.co.uk |
|
Back to top |
|
|
mikem22 -
Joined: 26 Oct 2007 Posts: 13
|
Posted: Mon Oct 29, 2007 11:00 am Post subject: |
|
|
Works perfectly :)
Thank you!
Mike _________________ Mike Montgomery |
|
Back to top |
|
|
hyperial -
Joined: 22 Aug 2007 Posts: 23
|
Posted: Wed Feb 06, 2008 5:25 pm Post subject: |
|
|
Would this work if I am trying to do the following?
http://oldserver/blog/post1 to http://newserver/blog/post1 ?
I'm wanting to move my blog from an old hostname to a new one and when people hit a specific item on the old one for it to come up on the new one too. |
|
Back to top |
|
|
roganty -
Joined: 08 Jun 2004 Posts: 357 Location: Bristol, UK
|
Posted: Wed Feb 06, 2008 10:08 pm Post subject: |
|
|
hyperial wrote: | Would this work if I am trying to do the following?
http://oldserver/blog/post1 to http://newserver/blog/post1 ?
I'm wanting to move my blog from an old hostname to a new one and when people hit a specific item on the old one for it to come up on the new one too. |
If you are moving your whole website to the new domain, then I think it should work
But if your only moving your blog you could try the following:
Code: |
^/blog/(.*) -> Perform and external redirection -> http://newdomain.com/blog/$1 -> Stop
|
_________________ Anthony R
Roganty | Links-Links.co.uk |
|
Back to top |
|
|
|