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
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Unable to set new rules Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Dhaval
Newbie
Newbie


Joined: 04 February 2010
Online Status: Offline
Posts: 3
Posted: 04 February 2010 at 5:36pm | IP Logged Quote Dhaval

Hi

My company is using ISAPI_Rwrite 2.11. We have created some rules for our IIS hosted websites , which are working fine. But now I am trying to create new rules for my new website, which is hosted on different domain, rule are same as before but with different domain name. I am getting page not found error when I try to test that rule.Please let me know how can I make this work.

I have added rules in httpd.ini file. Am I missing something?

 

 

Back to Top View Dhaval's Profile Search for other posts by Dhaval
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 05 February 2010 at 2:39am | IP Logged Quote Anton

"I have added rules in httpd.ini file" - which httpd.ini? in the root of new site? on into the global httpd.ini? Please clarify and show the
rules you have.

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
Dhaval
Newbie
Newbie


Joined: 04 February 2010
Online Status: Offline
Posts: 3
Posted: 08 February 2010 at 2:20pm | IP Logged Quote Dhaval

We have all rules for all our website in global httpd.ini file which at location "C:\Program Files\Helicon\ISAPI_Rewrite".

My rules are as follows and as I told you before, same rules are working fine for other sites, but not for this site www.247homesecurity.net which I added recently.

## statepage rules: default, findhomesecuritydeal ##

RewriteCond Host: (?:www\.)?.247homesecurity\.net
RewriteRule /(alaska|alabama|arkansas|arizona|california|colorado|connecticut|districtofcolumbia|delaware|florida|georgia|hawaii|iowa|idaho|illinois|indiana|kansas|kentucky|louisiana|massachusetts|maryland|maine|michigan|minnesota|missouri|mississippi|montana|north(%20)?carolina|north(%20)?dakota|nebraska|new(%20)?hampshire|new(%20)?jersey|new(%20)?mexico|nevada|new(%20)?york|ohio|oklahoma|oregon|pennsylvania|rhode(%20)?island|south(%20)?carolina|south(%20)?dakota|tennessee|texas|utah|virginia|vermont|washington|wisconsin|west(%20)?virginia|wyoming)/default.aspx /statepage.aspx?state=$1 [I,L]


RewriteCond Host: (?:www\.)?.247homesecurity\.net
RewriteRule /(alaska|alabama|arkansas|arizona|california|colorado|connecticut|districtofcolumbia|delaware|florida|georgia|hawaii|iowa|idaho|illinois|indiana|kansas|kentucky|louisiana|massachusetts|maryland|maine|michigan|minnesota|missouri|mississippi|montana|north(%20)?carolina|north(%20)?dakota|nebraska|new(%20)?hampshire|new(%20)?jersey|new(%20)?mexico|nevada|new(%20)?york|ohio|oklahoma|oregon|pennsylvania|rhode(%20)?island|south(%20)?carolina|south(%20)?dakota|tennessee|texas|utah|virginia|vermont|washington|wisconsin|west(%20)?virginia|wyoming)/ /statepage.aspx?state=$1 [I,L]

RewriteCond Host: (?:www\.)?.247homesecurity\.net
RewriteRule /(alaska|alabama|arkansas|arizona|california|colorado|connecticut|districtofcolumbia|delaware|florida|georgia|hawaii|iowa|idaho|illinois|indiana|kansas|kentucky|louisiana|massachusetts|maryland|maine|michigan|minnesota|missouri|mississippi|montana|north(%20)?carolina|north(%20)?dakota|nebraska|new(%20)?hampshire|new(%20)?jersey|new(%20)?mexico|nevada|new(%20)?york|ohio|oklahoma|oregon|pennsylvania|rhode(%20)?island|south(%20)?carolina|south(%20)?dakota|tennessee|texas|utah|virginia|vermont|washington|wisconsin|west(%20)?virginia|wyoming)/\?(.*) /statepage.aspx?state=$1&$2 [I,L]

 

 

Back to Top View Dhaval's Profile Search for other posts by Dhaval
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 09 February 2010 at 3:40am | IP Logged Quote Anton

Let's try to use the following instead of what you have:

RewriteCond Host: (?:www\.)?247homesecurity\.net
RewriteRule
/(alaska|alabama|arkansas|arizona|california|colorado|connecticut|districtofcolumbia|delaware|florida|georgia|hawaii|iowa|idaho|illinois|indian
a|kansas|kentucky|louisiana|massachusetts|maryland|maine|michigan|minnesota|missouri|mississippi|montana|north(%20)?carolina|north(%20)?
dakota|nebraska|new(%20)?hampshire|new(%20)?jersey|new(%20)?mexico|nevada|new(%20)?york|ohio|oklahoma|oregon|pennsylvania|rhode(%20)?
island|south(%20)?carolina|south(%20)?dakota|tennessee|texas|utah|virginia|vermont|washington|wisconsin|west(%20)?virginia|wyoming)/(?
:default.aspx)? /statepage.aspx\?state=$1 [I,L]


RewriteCond Host: (?:www\.)?247homesecurity\.net
RewriteRule
/(alaska|alabama|arkansas|arizona|california|colorado|connecticut|districtofcolumbia|delaware|florida|georgia|hawaii|iowa|idaho|illinois|indian
a|kansas|kentucky|louisiana|massachusetts|maryland|maine|michigan|minnesota|missouri|mississippi|montana|north(%20)?carolina|north(%20)?
dakota|nebraska|new(%20)?hampshire|new(%20)?jersey|new(%20)?mexico|nevada|new(%20)?york|ohio|oklahoma|oregon|pennsylvania|rhode(%20)?
island|south(%20)?carolina|south(%20)?dakota|tennessee|texas|utah|virginia|vermont|washington|wisconsin|west(%20)?virginia|wyoming)/\?(.*)
/statepage.aspx\?state=$1&$2 [I,L]

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
Dhaval
Newbie
Newbie


Joined: 04 February 2010
Online Status: Offline
Posts: 3
Posted: 10 February 2010 at 4:07pm | IP Logged Quote Dhaval

Hi Anton,

Thanks for helping me out in above issue. I have done following change in my rule and it started working.

instead of

RewriteCond Host: (?:www\.)?.247homesecurity\.net

I wrote

RewriteCond Host: (?:www\.)?247homesecurity\.net

I just removed "." between ? and 247. And it started working.

Regards

Dhanashri

 

Back to Top View Dhaval's Profile Search for other posts by Dhaval
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
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