URL Redirection

 
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting
View previous topic :: View next topic  
Author Message
mikem22
-


Joined: 26 Oct 2007
Posts: 13

PostPosted: Sun Oct 28, 2007 6:24 pm    Post subject: URL Redirection Reply with quote

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 View user's profile Send private message
roganty
-


Joined: 08 Jun 2004
Posts: 357
Location: Bristol, UK

PostPosted: Sun Oct 28, 2007 8:48 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
mikem22
-


Joined: 26 Oct 2007
Posts: 13

PostPosted: Mon Oct 29, 2007 11:00 am    Post subject: Reply with quote

Works perfectly :)

Thank you!

Mike
_________________
Mike Montgomery
Back to top View user's profile Send private message
hyperial
-


Joined: 22 Aug 2007
Posts: 23

PostPosted: Wed Feb 06, 2008 5:25 pm    Post subject: Reply with quote

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 View user's profile Send private message
roganty
-


Joined: 08 Jun 2004
Posts: 357
Location: Bristol, UK

PostPosted: Wed Feb 06, 2008 10:08 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group