| Author |
|
michaelntm Newbie

Joined: 16 July 2008
Online Status: Offline Posts: 16
|
| Posted: 16 July 2008 at 8:47am | IP Logged
|
|
|
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 |
|
| |
michaelntm Newbie

Joined: 16 July 2008
Online Status: Offline Posts: 16
|
| Posted: 16 July 2008 at 9:54am | IP Logged
|
|
|
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 |
|
| |
Anton Moderator Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 4837
|
| Posted: 22 July 2008 at 3:29am | IP Logged
|
|
|
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 |
|
| |
michaelntm Newbie

Joined: 16 July 2008
Online Status: Offline Posts: 16
|
| Posted: 22 July 2008 at 4:45am | IP Logged
|
|
|
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 |
|
| |
michaelntm Newbie

Joined: 16 July 2008
Online Status: Offline Posts: 16
|
| Posted: 23 July 2008 at 4:24am | IP Logged
|
|
|
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 |
|
| |
Lexey Moderator Group

Joined: 15 August 2002 Location: Russian Federation
Online Status: Offline Posts: 7598
|
| Posted: 28 July 2008 at 4:47pm | IP Logged
|
|
|
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 |
|
| |
michaelntm Newbie

Joined: 16 July 2008
Online Status: Offline Posts: 16
|
| Posted: 30 July 2008 at 11:18am | IP Logged
|
|
|
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 |
|
| |
michaelntm Newbie

Joined: 16 July 2008
Online Status: Offline Posts: 16
|
| Posted: 30 July 2008 at 11:29am | IP Logged
|
|
|
Ah, I guess for rules for a specific website sitting in a directory the file should be .htaccess
|
| Back to Top |
|
| |