IIS6 neverending loop, GetServerVariable: cannot find that variable

Topics: User Forum
Apr 10, 2013 at 8:11 PM
Hi

Just starting to work with IIRF and have an issue with ending up in a never ending loop. We are trying to make the users use a fully qualified name (due to our SSL Cert) , previously users could just go to https:/myhost/myform.aspx but now we want them to go to https:/myhost.fullname.com/myform.aspx.
We're using a windows server 2003 sp2 and IIS6.


The ini file is

StatusUrl /iirfStatus

RewriteLog c:\temp\iirf
RewriteLogLevel 2
IterationLimit 10
MaxMatchCount 10
RewriteEngine ON
StatusInquiry ON
CondSubstringBackrefFlag

RewriteCond %{HTTPS_HOST} ^(?!myhost.fullname.com)$
RedirectRule ^/(.*)$ https://myhost.fullname.com/$1




The Log file is as below.
Wed Apr 10 19:58:46 - 28736 - DoRewrites: Url (decoded): '/myform.aspx'
Wed Apr 10 19:58:46 - 28736 - GetServerVariable: cannot find that variable
Wed Apr 10 19:58:46 - 28736 - GetServerVariable: cannot find that variable
Wed Apr 10 19:58:46 - 28736 - DoRewrites: Redirect (code=302) Url to: 'https://myhost.fullname.com/myform.aspx'
Wed Apr 10 19:58:50 - 28736 - DoRewrites: Url (decoded): '/myform.aspx'
Wed Apr 10 19:58:50 - 28736 - GetServerVariable: cannot find that variable
Wed Apr 10 19:58:50 - 28736 - GetServerVariable: cannot find that variable
Wed Apr 10 19:58:50 - 28736 - DoRewrites: Redirect (code=302) Url to: 'https://myhost.fullname.com/myform.aspx'
etc etc.

What am I missing?

Thanks in advance
Apr 11, 2013 at 3:56 PM
I got it working!

Mainly due to my bad syntax. Went back to the drawing boards with regular expressions and got it sorted.

RewriteCond %{HTTP_HOST} ^(?!myhost.fullname.com)(.*)$
RedirectRule ^/(.*)$ https://myhost.fullname.com/$1 [R=301]

Working as we need, fab tool

Thanks.