Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0 support forum
 Helicon Tech : ISAPI_Rewrite 3.0 support forum
Subject Topic: Simple Rule Issue Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Matt Morrison
Newbie
Newbie


Joined: 01 October 2007
Location: United Kingdom
Online Status: Offline
Posts: 23
Posted: 07 May 2008 at 5:58am | IP Logged Quote Matt Morrison

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 View Matt Morrison's Profile Search for other posts by Matt Morrison Visit Matt Morrison's Homepage
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 3550
Posted: 07 May 2008 at 7:03am | IP Logged Quote Anton

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 View Anton's Profile Search for other posts by Anton
 
Matt Morrison
Newbie
Newbie


Joined: 01 October 2007
Location: United Kingdom
Online Status: Offline
Posts: 23
Posted: 07 May 2008 at 7:32am | IP Logged Quote Matt Morrison

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 View Matt Morrison's Profile Search for other posts by Matt Morrison Visit Matt Morrison's Homepage
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 3550
Posted: 08 May 2008 at 2:52am | IP Logged Quote Anton

IIS reset is not needed.
Please provide rewrite log records for this request.


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


Joined: 01 October 2007
Location: United Kingdom
Online Status: Offline
Posts: 23
Posted: 08 May 2008 at 9:24am | IP Logged Quote Matt Morrison

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 View Matt Morrison's Profile Search for other posts by Matt Morrison Visit Matt Morrison's Homepage
 
Matt Morrison
Newbie
Newbie


Joined: 01 October 2007
Location: United Kingdom
Online Status: Offline
Posts: 23
Posted: 08 May 2008 at 9:29am | IP Logged Quote Matt Morrison

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 View Matt Morrison's Profile Search for other posts by Matt Morrison Visit Matt Morrison's Homepage
 
tkraak
Newbie
Newbie


Joined: 30 January 2008
Online Status: Offline
Posts: 10
Posted: 10 May 2008 at 8:02pm | IP Logged Quote tkraak

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 View tkraak's Profile Search for other posts by tkraak
 
Matt Morrison
Newbie
Newbie


Joined: 01 October 2007
Location: United Kingdom
Online Status: Offline
Posts: 23
Posted: 12 May 2008 at 4:04am | IP Logged Quote Matt Morrison

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 View Matt Morrison's Profile Search for other posts by Matt Morrison Visit Matt Morrison's Homepage
 
Matt Morrison
Newbie
Newbie


Joined: 01 October 2007
Location: United Kingdom
Online Status: Offline
Posts: 23
Posted: 12 May 2008 at 4:48am | IP Logged Quote Matt Morrison

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 View Matt Morrison's Profile Search for other posts by Matt Morrison Visit Matt Morrison's Homepage
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 3550
Posted: 12 May 2008 at 7:49am | IP Logged Quote Anton

Logging directives should reside in httpd.conf file, not .htaccess.

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


Joined: 01 October 2007
Location: United Kingdom
Online Status: Offline
Posts: 23
Posted: 12 May 2008 at 8:12am | IP Logged Quote Matt Morrison

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 View Matt Morrison's Profile Search for other posts by Matt Morrison Visit Matt Morrison's Homepage
 
Matt Morrison
Newbie
Newbie


Joined: 01 October 2007
Location: United Kingdom
Online Status: Offline
Posts: 23
Posted: 12 May 2008 at 8:29am | IP Logged Quote Matt Morrison

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 View Matt Morrison's Profile Search for other posts by Matt Morrison Visit Matt Morrison's Homepage
 
Matt Morrison
Newbie
Newbie


Joined: 01 October 2007
Location: United Kingdom
Online Status: Offline
Posts: 23
Posted: 12 May 2008 at 8:50am | IP Logged Quote Matt Morrison

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 View Matt Morrison's Profile Search for other posts by Matt Morrison Visit Matt Morrison's Homepage
 
Yaroslav
Moderator Group
Moderator Group


Joined: 15 August 2002
Online Status: Offline
Posts: 6451
Posted: 13 May 2008 at 6:55am | IP Logged Quote Yaroslav

Directives LogLevel, RewriteLogLevel, ErrorLog, RewriteLog can only be used globally within httpd.conf file.

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top View Yaroslav's Profile Search for other posts by Yaroslav Visit Yaroslav's Homepage
 
Matt Morrison
Newbie
Newbie


Joined: 01 October 2007
Location: United Kingdom
Online Status: Offline
Posts: 23
Posted: 13 May 2008 at 8:56am | IP Logged Quote Matt Morrison

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 View Matt Morrison's Profile Search for other posts by Matt Morrison Visit Matt Morrison's Homepage
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 3550
Posted: 14 May 2008 at 4:19am | IP Logged Quote Anton

Are you using Full or Lite version of ISAPI_Rewrite?


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


Joined: 01 October 2007
Location: United Kingdom
Online Status: Offline
Posts: 23
Posted: 14 May 2008 at 4:20am | IP Logged Quote Matt Morrison

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 View Matt Morrison's Profile Search for other posts by Matt Morrison Visit Matt Morrison's Homepage
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 3550
Posted: 15 May 2008 at 4:31am | IP Logged Quote Anton

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 View Anton's Profile Search for other posts by Anton
 
Matt Morrison
Newbie
Newbie


Joined: 01 October 2007
Location: United Kingdom
Online Status: Offline
Posts: 23
Posted: 15 May 2008 at 8:09am | IP Logged Quote Matt Morrison

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 View Matt Morrison's Profile Search for other posts by Matt Morrison Visit Matt Morrison's Homepage
 
Matt Morrison
Newbie
Newbie


Joined: 01 October 2007
Location: United Kingdom
Online Status: Offline
Posts: 23
Posted: 15 May 2008 at 8:22am | IP Logged Quote Matt Morrison

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 View Matt Morrison's Profile Search for other posts by Matt Morrison Visit Matt Morrison's Homepage
 

Page of 2 Next >>
  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