| Author |
|
Matt Morrison Newbie

Joined: 01 October 2007 Location: United Kingdom
Online Status: Offline Posts: 23
|
| Posted: 07 May 2008 at 5:58am | IP Logged
|
|
|
Hi,
I have upgraded to ISAPI 3 and I did an import from 2 but it doesn't seem to like my rules as I get 404's all over the place?
Can I just check a simple rule without any id's...
RewriteEngine On
RewriteCompatibility2 On
RepeatLimit 200
RewriteBase
RewriteRule ^/Services/Complete-eCommerce-Strategies.aspx$ /Services/Default.aspx?Module=CompleteStrat [U]
Edited by Matt Morrison - 07 May 2008 at 6:00am
__________________ Cheers, Matt Morrison
Opal Logic Ltd
|
| Back to Top |
|
| |
Anton Moderator Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 3550
|
| Posted: 07 May 2008 at 7:03am | IP Logged
|
|
|
Please try the following rules:
RewriteEngine On RewriteBase
/
RewriteRule ^Services/Complete-eCommerce-Strategies\.aspx$ Services/Default.aspx?Module=CompleteStrat? [NC,L]
__________________ Regards,
Anton
|
| Back to Top |
|
| |
Matt Morrison Newbie

Joined: 01 October 2007 Location: United Kingdom
Online Status: Offline Posts: 23
|
| Posted: 07 May 2008 at 7:32am | IP Logged
|
|
|
Thanks but that did not work, do I need to be restarting IIS or something along those lines when I make changes?
__________________ Cheers, Matt Morrison
Opal Logic Ltd
|
| Back to Top |
|
| |
Anton Moderator Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 3550
|
| Posted: 08 May 2008 at 2:52am | IP Logged
|
|
|
IIS reset is not needed. Please provide rewrite log records for this request.
__________________ Regards,
Anton
|
| Back to Top |
|
| |
Matt Morrison Newbie

Joined: 01 October 2007 Location: United Kingdom
Online Status: Offline Posts: 23
|
| Posted: 08 May 2008 at 9:24am | IP Logged
|
|
|
erm...where do I get the logs you require? There's a rewrite log in the install dir (C:\Program Files\Helicon\ISAPI_Rewrite3\Rewrite.log) but that's empty.
Edited by Matt Morrison - 08 May 2008 at 9:33am
__________________ Cheers, Matt Morrison
Opal Logic Ltd
|
| Back to Top |
|
| |
Matt Morrison Newbie

Joined: 01 October 2007 Location: United Kingdom
Online Status: Offline Posts: 23
|
| Posted: 08 May 2008 at 9:29am | IP Logged
|
|
|
Also I keep getting this in the error.log file...
[08/05/2008 14:48:22] (crit) ISAPI Filter loaded. Version 3.1.0.47. Windows 5.2 (Build 3790 ServicePack:2) ProductType SERVER. CPU type INTEL NumberOfProcessors 4.
__________________ Cheers, Matt Morrison
Opal Logic Ltd
|
| Back to Top |
|
| |
tkraak Newbie

Joined: 30 January 2008
Online Status: Offline Posts: 10
|
| Posted: 10 May 2008 at 8:02pm | IP Logged
|
|
|
Matt,
Turn logging on by putting the following lines into the httpd.conf file. This will "fill" your rewrite.log file.
RewriteLogLevel 9 LogLevel debug
Edited by tkraak - 10 May 2008 at 8:02pm
|
| Back to Top |
|
| |
Matt Morrison Newbie

Joined: 01 October 2007 Location: United Kingdom
Online Status: Offline Posts: 23
|
| Posted: 12 May 2008 at 4:04am | IP Logged
|
|
|
Hi, I've turned on logging but I'm not seeing any for my site yet so I'll give it a bit longer.
You didn't comment on my error.log description above; any ideas? Is that a problem? It says (crit) and appears everyday! Could this be the reason I am having rewrite issues?
__________________ Cheers, Matt Morrison
Opal Logic Ltd
|
| Back to Top |
|
| |
Matt Morrison Newbie

Joined: 01 October 2007 Location: United Kingdom
Online Status: Offline Posts: 23
|
| Posted: 12 May 2008 at 4:48am | IP Logged
|
|
|
Well I have waited a while now and it seems to be loggin sites that have absolutely nothing in the .htaccess file but the one that does isn't loggin anything...this is what is in my .htaccess file for the site that isn't logging...
# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.47
RewriteEngine On
RewriteBase /
# ------------------------------------------------------------------------------------------------------------------------------------------------------------------
#
# -- SERVICE PAGE STATIC MODULES --
#
RewriteRule ^Services/Complete-eCommerce-Strategies\.aspx$ Services/Default.aspx?Module=CompleteStrat? [NC,L]
and here is the main httpd.conf file...
# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.47
# Registration info
RegistrationName= Opal Logic Ltd
RegistrationCode= [REMOVED FOR POST]
RewriteLogLevel 9
LogLevel debug
# GLOBAL RULES
# Defend from some worm attacks
#RewriteRule ^.*(?:global.asa|default\.ida|root\.exe|\.\.).*$ . [NC,F]
# Block external access to the Helper ISAPI Extension
#RewriteRule ^.*\.isrwhlp$ / [NC,F]
__________________ Cheers, Matt Morrison
Opal Logic Ltd
|
| Back to Top |
|
| |
Anton Moderator Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 3550
|
| Posted: 12 May 2008 at 7:49am | IP Logged
|
|
|
Logging directives should reside in httpd.conf file, not .htaccess.
__________________ Regards,
Anton
|
| Back to Top |
|
| |
Matt Morrison Newbie

Joined: 01 October 2007 Location: United Kingdom
Online Status: Offline Posts: 23
|
| Posted: 12 May 2008 at 8:12am | IP Logged
|
|
|
It is?! Look at my post again, the .htaccess only has rewrite rule and below that is the code from my httpd.conf file which holds the log directives
__________________ Cheers, Matt Morrison
Opal Logic Ltd
|
| Back to Top |
|
| |
Matt Morrison Newbie

Joined: 01 October 2007 Location: United Kingdom
Online Status: Offline Posts: 23
|
| Posted: 12 May 2008 at 8:29am | IP Logged
|
|
|
I think I know why, I am running IISPassword so I will change AccessFileName and try getting info from logs again.
__________________ Cheers, Matt Morrison
Opal Logic Ltd
|
| Back to Top |
|
| |
Matt Morrison Newbie

Joined: 01 October 2007 Location: United Kingdom
Online Status: Offline Posts: 23
|
| Posted: 12 May 2008 at 8:50am | IP Logged
|
|
|
Ok I have done that but no logs still and no working rewrite, I changed the name to .htaccess_isapi and all the helicon access files are renamed plus IISPassword doesn't pick it up as protected anymore which is good. But I still don't get any logs for that website (get all the others)
__________________ Cheers, Matt Morrison
Opal Logic Ltd
|
| Back to Top |
|
| |
Yaroslav Moderator Group

Joined: 15 August 2002
Online Status: Offline Posts: 6451
|
| Posted: 13 May 2008 at 6:55am | IP Logged
|
|
|
Directives LogLevel, RewriteLogLevel, ErrorLog, RewriteLog can only be used globally within httpd.conf file.
__________________ Yaroslav Govorunov,
Helicon Tech
|
| Back to Top |
|
| |
Matt Morrison Newbie

Joined: 01 October 2007 Location: United Kingdom
Online Status: Offline Posts: 23
|
| Posted: 13 May 2008 at 8:56am | IP Logged
|
|
|
Firstly thank you for your help, a little confused by your post though as the directive is in the httpd.conf file not the .htaccess file. Anton asked this earlier in this thread and I already confirmed that, here is the detail again to help make it clear.
So here is my httpd.conf file details:
Code:
|
# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.47
# Registration info
RegistrationName= Opal Logic Ltd
RegistrationCode= {REMOVED FOR SECURITY}
# Rewrite debug
RewriteLogLevel 9
LogLevel debug
# Change AccessFileName due to IISPassword
AccessFileName .htaccess_isapi
|
|
|
and this is my .htaccess_isapi file:
Code:
|
# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.47
RewriteEngine On
RewriteBase /
#
# -- SERVICE PAGE STATIC MODULES --
#
RewriteRule ^Services/Complete-eCommerce-Strategies\.aspx$ Services/Default.aspx?Module=CompleteStrat? [NC,L]
|
|
|
If the site has no .htaccess_isapi then it writes the logs to the rewrite.log file but not for this site which does have the .htaccess_isapi file with contents as above.
Can you spot an issue with my formats which is stopping me from getting logs and most importantly the rewrite actually working?
Edited by Matt Morrison - 13 May 2008 at 8:57am
__________________ Cheers, Matt Morrison
Opal Logic Ltd
|
| Back to Top |
|
| |
Anton Moderator Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 3550
|
| Posted: 14 May 2008 at 4:19am | IP Logged
|
|
|
Are you using Full or Lite version of ISAPI_Rewrite?
__________________ Regards,
Anton
|
| Back to Top |
|
| |
Matt Morrison Newbie

Joined: 01 October 2007 Location: United Kingdom
Online Status: Offline Posts: 23
|
| Posted: 14 May 2008 at 4:20am | IP Logged
|
|
|
I was using lite and I uninstalled and installed full after purchasing a licence from you.
__________________ Cheers, Matt Morrison
Opal Logic Ltd
|
| Back to Top |
|
| |
Anton Moderator Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 3550
|
| Posted: 15 May 2008 at 4:31am | IP Logged
|
|
|
Does the rule in .htaccess work? Please make sure ISAPI_Rewrite3 filter is up and running in IIS - Web sites properties - ISAPI filters.
__________________ Regards,
Anton
|
| Back to Top |
|
| |
Matt Morrison Newbie

Joined: 01 October 2007 Location: United Kingdom
Online Status: Offline Posts: 23
|
| Posted: 15 May 2008 at 8:09am | IP Logged
|
|
|
no the rule does not work and I have ISAPI_Rewrite3 set to high and it is loaded in IIS against the top level folder for websites, therefore all sub websites should inherit this.
__________________ Cheers, Matt Morrison
Opal Logic Ltd
|
| Back to Top |
|
| |
Matt Morrison Newbie

Joined: 01 October 2007 Location: United Kingdom
Online Status: Offline Posts: 23
|
| Posted: 15 May 2008 at 8:22am | IP Logged
|
|
|
Well, I've got it working!! I decided to go live with my site without rewrites for the time being, when I decided to try the rewritten url by typing it into the browser on the off chance it just worked?!
I tried this on the sub-domain test environment again (same box etc) and no joy so it seems that I can't rewrite on sub domains; is that correct?
__________________ Cheers, Matt Morrison
Opal Logic Ltd
|
| Back to Top |
|
| |