Automatically redirect users to FQDN

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 2
Joined: 26 Dec 2012, 14:22

Automatically redirect users to FQDN

26 Dec 2012, 14:28

Hello,

When users go to my corporate intranet, they currently go to it via intranet. I would like for any user who goes to the site via intranet to automatically be redirected to intranet.domainname.org. So if a user goes to the site via http://intranet/handbook.aspx, it should automatically redirect them to http://intranet.domainname.org/handbook.aspx and so on.

I haven't really tried anything yet as regex and putting together these commands aren't one of my strong suits.

Thanks,
Sheel

User avatar
Posts: 5
Joined: 26 Dec 2012, 23:38

Re: Automatically redirect users to FQDN

27 Dec 2012, 00:26

I'm still currently on the same phase and still working on it.

User avatar
Posts: 2
Joined: 26 Dec 2012, 14:22

Re: Automatically redirect users to FQDN

27 Dec 2012, 12:43

Hi,

I tried this, but unfortunately, it doesn't appear to be catching the rule.

RewriteCond %{HTTP:Host} ^intranet$
RewriteRule (.*) http://intranet.domainname.org/$1 [NC,R=301]

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Automatically redirect users to FQDN

28 Dec 2012, 05:55

Hello,

If your host is "intranet", than the rule looks ok.
Please, provide the rewrite.log for a testing request. Logging issues described in FAQ
this will shed some light

regards
Andrew

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 33 guests