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 specific host names
Author
Message |
MMooney
Newbie


Joined: 17 November 2011
Posts: 1
Posted: 17 November 2011 at 5:49pm

I would like to bypass a login page for 3 specific host names, so that people coming to the site from inside the company can go straight to thier internal news pages. 

.htaccess will trigger when the usere enters the sub directory for the internal news pages i.e.  "http://www.mikesburgers.com/intranet"

If they are coming from any of the 3 inside host names, they go straight to the internal news pages  "/LB_Inside". 

Here's the code I am planning to use:

RewriteCond %{HTTP_HOST} ^(?:www\.)?cxtinc.com$ [NC]
RewriteRule ^/intranet\.$ /LB_Inside [NC,R=301,L]

RewriteCond %{HTTP_HOST} ^(?:www\.)?lbfosterco.com$ [NC]
RewriteRule ^/intranet\.$ /LB_Inside [NC,R=301,L]

RewriteCond %{HTTP_HOST} ^(?:www\.)?fstrdom1.com$ [NC]
RewriteRule ^/intranet\.$ /LB_Inside [NC,R=301,L]

Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 18 November 2011 at 5:08am

Hello,

The rules look good. You need to place them in httpd.conf and the work is done.
Please, specify an issue.

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