This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: Redirect absolute URL to absolute URL
Author
Message |
janmontano
Newbie


Joined: 12 September 2011
Location: Australia
Posts: 15
Posted: 10 October 2011 at 12:16am

Hi,

We have a website www.masterpet.com with several host headers and
www.blueplanetaquariums.com.au is one of them.

Now I need to redirect www.blueplanetaquariums.com.au/default.aspx to www.masterpet.com/Blue-Planet. How
would I do it?

I already know how to redirect a domain to an absolute URL using this:

RewriteCond %{HTTP_HOST} ^blueplanetaquariums\.com$ [NC]
RewriteRule (.*) http://www.masterpet.com/Blue-Planet/ [R=301,L]

But don't know how to redirect an absolute url to another absolute URL.

Please help. Thanks.

__________________
http://www.kokoness.com.au
Back to Top Visit janmontano's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 10 October 2011 at 2:00am

Please try it as follows:

RewriteBase /
RewriteCond %{HTTP_HOST} ^(?:www\.)?blueplanetaquariums\.com\.au$ [NC]
RewriteRule ^default\.aspx$ http://www.masterpet.com/Blue-Planet/? [NC,R=301,L]

__________________
Regards,
Anton
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version