Automatically redirect users to FQDN
4 posts
• Page 1 of 1
Automatically redirect users to FQDN
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
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
- mydearcosmo
- Posts: 5
- Joined: 26 Dec 2012, 23:38
Re: Automatically redirect users to FQDN
I'm still currently on the same phase and still working on it.
Re: Automatically redirect users to FQDN
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]
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]
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Automatically redirect users to FQDN
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
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
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 33 guests