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 rewrite
Author
Message |
lulaping
Newbie


Joined: 30 May 2010
Posts: 4
Posted: 30 May 2010 at 10:37pm

I'm trying to do a straight 301 redirect with the ISAPI rewrite tool. Here is what I need to do:

301 Redirect http://www.site.com/news/to http://news.site.com/

Can someone please help me out?

Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 31 May 2010 at 4:14am

Hello,
Please, try using the following rule:

Code:
RewriteEngine on
RewriteBase /
RewriteRule ^news$ http://news.site.com/ [NC,R=301,L]


Regards
Andrew
Back to Top
 
lulaping
Newbie


Joined: 30 May 2010
Posts: 4
Posted: 31 May 2010 at 7:43am

Thanks Andrew

Back to Top
 
satavi
Newbie


Joined: 30 November 2011
Location: United States
Posts: 3
Posted: 02 December 2011 at 6:39pm

Andrew, how about forwarding site to straight 301 on sharepoint when user enters the domain name such as: http://epicor2010dev

RewriteEngine on
RewriteBase /
RewriteRule / http://epicor2010dev/pages/default.aspx [NC,R=301,L]

this works but it runs like 120 times before stops the loop. thanks

 

 

 

AndrushkaUS wrote:
Hello,
Please, try using the following rule:

Code:
RewriteEngine on
RewriteBase /
RewriteRule ^news$ http://news.site.com/ [NC,R=301,L]


Regards
Andrew

Back to Top
 

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

Printable version Printable version