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: how do i 301 redirect a folder?
Author
Message |
vitanet
Newbie


Joined: 11 December 2003
Location: United States
Posts: 31
Posted: 21 October 2011 at 10:14am

I have to move two blogs off my website. how do i redirect the /folder/ to subdomain.example.com ??

I need to pass all the url parameters as well.

thanks for the help.

Darrell
Back to Top Visit vitanet's Homepage
 
vitanet
Newbie


Joined: 11 December 2003
Location: United States
Posts: 31
Posted: 21 October 2011 at 3:45pm

actually the blog was like this forexample:

http://example.com/blog/ i need to redirect http://blog.example.com/

and i want to pass all the all the url parameters over too.

I have played with the rewrite rules but can not get it right. please help. thanks
Back to Top Visit vitanet's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 24 October 2011 at 2:44am

Please try to put the following rules into the .htaccess in the root of example.com:

RewriteBase /
RewriteRule ^blog(.*)$ http\://blog.example.com$1 [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