|
|||
|
Sometimes I get a 404 error returned from the server when making a request to a module other than the default module (I am using the conventional modular layout). The error does not occur often, once every three weeks or so.
The web server is running IIS 6, and I am using a pretty standard Isapi_Rewrite rule. The 404 from the server suggests to me that for some reason the request is not getting sent to the bootstrap file for all requests to modules other than the default. IIS logs just show a 404 error as expected, and the Windows Event Viewer does not show anything. I am currently using ZF 1.5.2, though this has always been an issue. Closing the browser and reopening the browser fixes this seemingly random problem, until it occurs again. Any thoughts? |
|
|||
|
Quote:
Could you please post your rewrite condition and rule here? I'm also facing similar problem. Thanks
__________________
Amit Shah |
|
|||
|
Here is my rewrite for ISAPI_Rewrite 2:
Code:
[ISAPI_Rewrite] # UFCD /Intranet/ZF rewrite for Zend Framework 1.5.1 # # Author: Justus Weber # Copyright: 2008 UFCD # turn on the rewrite engine RewriteEngine on # only rewrite requests when the intranet auth cookie is set RewriteCond Cookie: .*UFCDIntranetAuth=.* # only rewrite requests made to the correct subdirectory RewriteCond URL (/intranet/ZF/.*) # perform the rewrite RewriteRule ^[\w/\%]*(?:\.(?!(?:js|ico|gif|jpg|png|css)$)[\w\%]*$)? /intranet/ZF/index.php [i] Code:
# Helicon ISAPI_Rewrite configuration file
# Version 3.0.0.25
RewriteEngine On
RewriteCompatibility2 On
RepeatLimit 200
RewriteBase
#
# Author: Justus Weber
# Copyright: 2008 UFCD
# only rewrite requests when the intranet auth cookie is set
# only rewrite requests made to the correct subdirectory
# perform the rewrite
RewriteCond %{HTTP:Cookie} ^.*UFCDIntranetAuth=.*$ [NC]
RewriteCond %{REQUEST_URI} ^(/intranet/ZF/.*)$ [NC]
RewriteRule ^[\w/\%]*(?:\.(?!(?:js|ico|gif|jpg|png|css)$)[\w\%]*$)?$ /intranet/ZF/index.php [NC]
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|