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: 301 Redirect
Author
Message |
jusufhpi
Newbie


Joined: 22 September 2011
Posts: 2
Posted: 22 September 2011 at 6:58pm

Hi,

I had domain http://xyz.domain.com and would like to move
to http://www.domain.com/xyz.

Could you please help me to make the 301 redirection for
it?

THANK YOU.
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 23 September 2011 at 2:36am

It should be:

RewriteBase /
RewriteCond %{HTTP_HOST} ^xyz\.domain\.com$ [NC]
RewriteRule (.*) http://www.domain.com/xyz/$1 [R=301,L]

__________________
Regards,
Anton
Back to Top
 
jusufhpi
Newbie


Joined: 22 September 2011
Posts: 2
Posted: 23 September 2011 at 10:27am

It's working. THANK YOU VERY MUCH.
Back to Top
 

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

Printable version Printable version