View Single Post
  #5 (permalink)  
Old 07-16-2008, 05:26 PM
jweber jweber is offline
Senior Member
 
Join Date: Jun 2008
Location: Florida
Posts: 108
Default

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]
and here is the same for the serving running ISAPI_Rewrite 3:
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]
Reply With Quote