This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Help with rewrite syntax
Message |

Joined: 30 September 2009
Posts: 12
Posted: 01 March 2012 at 7:56pm

Can someone PLEASE tell me what's wrong wrong with these 2 statements .. Thanks, Chris

RewriteHeader Host www\.childrens\.ca/fsrc  www\.bcchildrens\.ca/Services/ClinicalFamilyServices/FamilySuppResourceCntr/default\.htm  [I,R]
RewriteHeader Host www\.womens\.ca/fsrc  www\.bcchildrens\.ca/Services/ClinicalFamilyServices/FamilySuppResourceCntr/default\.htm  [I,R]


Back to Top
Admin Group

Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 03 March 2012 at 3:01am

Hello, Chris

What you are trying to put into Host header is not actually the hostname, it's the entire URL.
Host URL contains www\.childrens\.ca or www\.womens\.ca and you can rewrite it to www\.bcchildrens\.ca and www\.bcchildrens\.ca
Maybe it's better to write the following rules instead:

RewriteCond Host: www\.childrens\.ca
RewriteRule /fsrc http\://www\.bcchildrens\.ca/Services/ClinicalFamilyServices/FamilySuppResourceCntr/default.htm [I,R]
RewriteCond Host: www\.womens\.ca
RewriteHeader Host /fsrc http\://www\.bcchildrens\.ca/Services/ClinicalFamilyServices/FamilySuppResourceCntr/default.htm [I,R]

Back to Top

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

Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum