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: Lost the 404 page not found error page Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
robgt
Newbie
Newbie


Joined: 20 June 2008
Online Status: Offline
Posts: 12
Posted: 10 July 2008 at 7:34am | IP Logged Quote robgt

Having purchased and implemented Isapi Rewrite 3 on our ISS 6 Windows 2003 server, it appears that we no longer get a page not found error on mistyped URLs etc - is there a way to allow this standard functionality again?

All we get now is "The system cannot find the file specified."

Is there something we have done wrong in the rewrite rules?
If something is entered into the URL bar and it's not found in the rewrite rules file (htaccess) then the site should display a 404 not found page as normal.

Any pointers please?
Cheers,
Rob

Back to Top View robgt's Profile Search for other posts by robgt
 
Vyacheslav
Moderator Group
Moderator Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 350
Posted: 10 July 2008 at 7:40am | IP Logged Quote Vyacheslav

Hi robgt!

Please provide your rewrite.log and error.log files. Also maybe you can provide your .htaccess file and/or httpd.conf.

To enable errors loging, please set RewriteLogLevel to 9, and LogLevel to debug in your httpd.conf.


__________________
Kind regards!
Vyacheslav.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav's Homepage
 
robgt
Newbie
Newbie


Joined: 20 June 2008
Online Status: Offline
Posts: 12
Posted: 10 July 2008 at 7:57am | IP Logged Quote robgt

Do I post them on here or email the files?
Is it possible to attach files on here (I can't see an attach button)?

Cheers,
Rob


Back to Top View robgt's Profile Search for other posts by robgt
 
Vyacheslav
Moderator Group
Moderator Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 350
Posted: 10 July 2008 at 8:10am | IP Logged Quote Vyacheslav

You can make as you conveniently:
1) On forum. Just copy/past it in the message.
2) By Email: support@helicontech.com

__________________
Kind regards!
Vyacheslav.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav's Homepage
 
robgt
Newbie
Newbie


Joined: 20 June 2008
Online Status: Offline
Posts: 12
Posted: 10 July 2008 at 9:20am | IP Logged Quote robgt

I am emailing the files - I have detailed logging turned on and the rewrite.log file is particularly massive.

While you have these files, could you maybe help with another question?
I only need rewriting on two websites at the moment, so perhaps the sites I do not need to have rewriting on can be excluded from logging etc?

Not sure if this is possible but would be good if so.
Cheers,
Rob

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


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 3895
Posted: 11 July 2008 at 4:22am | IP Logged Quote Anton

Probably the issue is with Application mappings (IIS - Web site properties - Home directory - Configuration...). Please make sure you don't have associations of * with file types that do not exist. In case you have, please delete them.


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


Joined: 20 June 2008
Online Status: Offline
Posts: 12
Posted: 11 July 2008 at 4:30am | IP Logged Quote robgt

Hi,
There are no associations of * in the Application Mappings?

The 404 errors worked as expected until IsapiRewrite was installed...
Cheers,
Rob

Back to Top View robgt's Profile Search for other posts by robgt
 
Vyacheslav
Moderator Group
Moderator Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 350
Posted: 11 July 2008 at 5:14am | IP Logged Quote Vyacheslav

Hi robgt!

Please try temporarily to stop ISAPI_Rewrite, using this code:
Code:
RewriteEngine Off


And please tell us about changes.

__________________
Kind regards!
Vyacheslav.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav's Homepage
 
robgt
Newbie
Newbie


Joined: 20 June 2008
Online Status: Offline
Posts: 12
Posted: 11 July 2008 at 6:06am | IP Logged Quote robgt

Damn!

I still get the same error (and no 404 page) with RewriteEngine Off in my htaccess file

Any idea why this would be the case now, but not before?
(i.e. web pages would display a 404 page not found - but now it doesn't?)

Thanks for the prompt reply!
Cheers,
Rob

Back to Top View robgt's Profile Search for other posts by robgt
 
Vyacheslav
Moderator Group
Moderator Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 350
Posted: 11 July 2008 at 7:46am | IP Logged Quote Vyacheslav

Please don't worry. Probably trouble not in ISAPI_Rewrite. So, maybe in server configuration. Are you sure, that you did not change nothing on page Site Properties -> Custom Errors ?

Did you do some other changes in some parts of server configuration?

Please answer, and we will try to help you!

__________________
Kind regards!
Vyacheslav.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav's Homepage
 
robgt
Newbie
Newbie


Joined: 20 June 2008
Online Status: Offline
Posts: 12
Posted: 11 July 2008 at 8:02am | IP Logged Quote robgt

Hi,
The Custom Errors tab for this site configuration is standard (unmodified) - 404 in the list shows "Not Found"  in the "Contents" column.

I've just tested several other sites on my server and they all seem to display this same error message instead of a standard 404.

I really am not sure what has been configured to make it do this, but it's very frustrating.
And obvioulsy not an issue from IsapiRewrite!

If you think you might know what's wrong, pointers would be very much appreciated.
Cheers,
Rob

Back to Top View robgt's Profile Search for other posts by robgt
 
Vyacheslav
Moderator Group
Moderator Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 350
Posted: 11 July 2008 at 8:36am | IP Logged Quote Vyacheslav

Hi robgt!

It's not a trouble! You see the default message. But probably I understand what you want. To do this, please make few steps:
1) Open page Site Properties -> Custom Errors
2) Edit properties for 404 error like this:



__________________
Kind regards!
Vyacheslav.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav's Homepage
 
robgt
Newbie
Newbie


Joined: 20 June 2008
Online Status: Offline
Posts: 12
Posted: 11 July 2008 at 10:44am | IP Logged Quote robgt

Hi,
I think we've found the reason (no default site in IIS) so setting the 404 page for each site as you suggested resolves the issue!!
Many thanks for your help!

Now, is there a way to stop the rewriting stuff from running on all the other sites - it's only required on two (currently)?
I see in the log files that every site being served is going through the rewriting engine?

Cheers,
Rob

Back to Top View robgt's Profile Search for other posts by robgt
 
tilly
Groupie
Groupie


Joined: 24 June 2008
Location: Neutral Zone
Online Status: Offline
Posts: 49
Posted: 11 July 2008 at 10:55am | IP Logged Quote tilly

hi rob,

try adding the VirtualHost, for the specific virtual host

in to the "from the help manual"

Code:

RewriteEngine off
AllowOverride none

<VirtualHost onesite.com www.onesite.com>

RewriteEngine on
AllowOverride all

#--- rules

</VirtualHost>

<VirtualHost sitetwo.com www.sitetwo.com>

RewriteEngine on
AllowOverride all

#--- rules

</VirtualHost> 

hope that helps,

Regards,



Edited by tilly - 11 July 2008 at 10:58am
Back to Top View tilly's Profile Search for other posts by tilly
 
robgt
Newbie
Newbie


Joined: 20 June 2008
Online Status: Offline
Posts: 12
Posted: 11 July 2008 at 11:23am | IP Logged Quote robgt

Hi tilly,
is this in the http.conf file to cover all sites instead of in the individual sites using htaccess files?

Cheers,
Rob

Back to Top View robgt's Profile Search for other posts by robgt
 
tilly
Groupie
Groupie


Joined: 24 June 2008
Location: Neutral Zone
Online Status: Offline
Posts: 49
Posted: 11 July 2008 at 11:30am | IP Logged Quote tilly

Rob,

Yes thats right in your http.conf to only apply the the sites you wish.

Regards

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

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