Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x support forum
 Helicon Tech : ISAPI_Rewrite 2.x support forum
Subject Topic: Re-Starting IIS with changed httpd.ini Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
michaelntm
Newbie
Newbie


Joined: 16 July 2008
Online Status: Offline
Posts: 16
Posted: 16 July 2008 at 8:47am | IP Logged Quote michaelntm

Hi

I've got Isapi-Rewrite 2.0 running with IIS 6.0 and have placed a httpd.ini in the wwwroot of the website, with the following rule:

RewriteRule ^/all-new-products\.html$ /index.php?/category/listall [L]

Showing a 404 not found at the moment but I guess IIS needs re-started for it to pick up any changes in a virtual directory httpd.ini? Don't see notes on this in the documentation...

Is it sufficient just to re-start the particular site?
Back to Top View michaelntm's Profile Search for other posts by michaelntm
 
michaelntm
Newbie
Newbie


Joined: 16 July 2008
Online Status: Offline
Posts: 16
Posted: 16 July 2008 at 9:54am | IP Logged Quote michaelntm

PS Do you explicitly need

RewriteEngine on
RewriteBase /

within the httpd.ini? There seems to be some confusion here..

also could the file also be called httpd.conf?

I'm seeing some conflicting advice in documentation

Thanks
Back to Top View michaelntm's Profile Search for other posts by michaelntm
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 4837
Posted: 22 July 2008 at 3:29am | IP Logged Quote Anton

If you are using Isapi_Rewrite 2.0you don't need to use RewriteEngine on, RewriteBase / directives, and your config must be httpd.ini.

Please try to correct your rule like this:

RewriteRule /all-new-products\.html /index.php\?/category/listall [I,L]


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


Joined: 16 July 2008
Online Status: Offline
Posts: 16
Posted: 22 July 2008 at 4:45am | IP Logged Quote michaelntm

Thanks.

What do the [I,L] denote?

Also do you need a full server re-start to pick up changes in the http.ini or would a simple site re-start be enough.

I don't have control of the server and need to pass this advice on.

Thanks
Back to Top View michaelntm's Profile Search for other posts by michaelntm
 
michaelntm
Newbie
Newbie


Joined: 16 July 2008
Online Status: Offline
Posts: 16
Posted: 23 July 2008 at 4:24am | IP Logged Quote michaelntm

Ok, so with ISAPI Re-write 3 I guess you do need the ReWrite Engine and ReWrite Base rules? as in this page here

http://www.helicontech.com/isapi_rewrite/doc/examples.htm

Also do you need the ^ and $ characters as well?
Back to Top View michaelntm's Profile Search for other posts by michaelntm
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 7598
Posted: 28 July 2008 at 4:47pm | IP Logged Quote Lexey

Quote:

What do the [I,L] denote?


Please, read documentation on the RewriteRule directive syntax.

Quote:
Also do you need a full server re-start to pick up changes in the http.ini or would a simple site re-start be enough.


There is no need to restart anything. Simply perform at least two requests to a site affected by an updated configuration and configuration file will be reloaded.

Quote:
Also do you need the ^ and $ characters as well?


In most cases these characters are useless in the ISAPI_Rewrite 2 patterns.
Back to Top View Lexey's Profile Search for other posts by Lexey
 
michaelntm
Newbie
Newbie


Joined: 16 July 2008
Online Status: Offline
Posts: 16
Posted: 30 July 2008 at 11:18am | IP Logged Quote michaelntm

ok so since am using ISAPI_Rewrite 3 then my original rule should have worked fine

RewriteRule ^/all-new-products\.html$ /index.php?/category/listall [L]

if I change it to

RewriteRule ^/all-new-products\.html$ /index.php\?/category/listall [I,L]

And without a re-start of IIS it should be picked up. I have it named as httpd.ini and also httpd.conf. Still not being picked up.
Back to Top View michaelntm's Profile Search for other posts by michaelntm
 
michaelntm
Newbie
Newbie


Joined: 16 July 2008
Online Status: Offline
Posts: 16
Posted: 30 July 2008 at 11:29am | IP Logged Quote michaelntm

Ah, I guess for rules for a specific website sitting in a directory the file should be .htaccess
Back to Top View michaelntm's Profile Search for other posts by michaelntm
 

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