| Author |
|
robgt Newbie

Joined: 20 June 2008
Online Status: Offline Posts: 12
|
| Posted: 10 July 2008 at 7:34am | IP Logged
|
|
|
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 |
|
| |
Vyacheslav Moderator Group

Joined: 02 July 2008 Location: Ukraine
Online Status: Offline Posts: 350
|
| Posted: 10 July 2008 at 7:40am | IP Logged
|
|
|
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 |
|
| |
robgt Newbie

Joined: 20 June 2008
Online Status: Offline Posts: 12
|
| Posted: 10 July 2008 at 7:57am | IP Logged
|
|
|
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 |
|
| |
Vyacheslav Moderator Group

Joined: 02 July 2008 Location: Ukraine
Online Status: Offline Posts: 350
|
| Posted: 10 July 2008 at 8:10am | IP Logged
|
|
|
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 |
|
| |
robgt Newbie

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

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 3895
|
| Posted: 11 July 2008 at 4:22am | IP Logged
|
|
|
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 |
|
| |
robgt Newbie

Joined: 20 June 2008
Online Status: Offline Posts: 12
|
| Posted: 11 July 2008 at 4:30am | IP Logged
|
|
|
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 |
|
| |
Vyacheslav Moderator Group

Joined: 02 July 2008 Location: Ukraine
Online Status: Offline Posts: 350
|
| Posted: 11 July 2008 at 5:14am | IP Logged
|
|
|
Hi robgt!
Please try temporarily to stop ISAPI_Rewrite, using this code:
And please tell us about changes.
__________________ Kind regards!
Vyacheslav.
|
| Back to Top |
|
| |
robgt Newbie

Joined: 20 June 2008
Online Status: Offline Posts: 12
|
| Posted: 11 July 2008 at 6:06am | IP Logged
|
|
|
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 |
|
| |
Vyacheslav Moderator Group

Joined: 02 July 2008 Location: Ukraine
Online Status: Offline Posts: 350
|
| Posted: 11 July 2008 at 7:46am | IP Logged
|
|
|
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 |
|
| |
robgt Newbie

Joined: 20 June 2008
Online Status: Offline Posts: 12
|
| Posted: 11 July 2008 at 8:02am | IP Logged
|
|
|
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 |
|
| |
Vyacheslav Moderator Group

Joined: 02 July 2008 Location: Ukraine
Online Status: Offline Posts: 350
|
| Posted: 11 July 2008 at 8:36am | IP Logged
|
|
|
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 |
|
| |
robgt Newbie

Joined: 20 June 2008
Online Status: Offline Posts: 12
|
| Posted: 11 July 2008 at 10:44am | IP Logged
|
|
|
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 |
|
| |
tilly Groupie

Joined: 24 June 2008 Location: Neutral Zone
Online Status: Offline Posts: 49
|
| Posted: 11 July 2008 at 10:55am | IP Logged
|
|
|
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 |
|
| |
robgt Newbie

Joined: 20 June 2008
Online Status: Offline Posts: 12
|
| Posted: 11 July 2008 at 11:23am | IP Logged
|
|
|
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 |
|
| |
tilly Groupie

Joined: 24 June 2008 Location: Neutral Zone
Online Status: Offline Posts: 49
|
| Posted: 11 July 2008 at 11:30am | IP Logged
|
|
|
Rob,
Yes thats right in your http.conf to only apply the the sites you wish.
Regards
|
| Back to Top |
|
| |