HowTo: Drupal 6, IIS6 and ISAPI_Rewrite 3

markzeman - July 3, 2009 - 01:17
Project:ImageCache
Version:6.x-2.0-beta9
Component:Documentation
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

You can use ISAPI_Rewrite 3 to enable clean urls in drupal.

http://www.helicontech.com/isapi_rewrite/

http://www.helicontech.com/articles/drupal.htm

ISAPI_Rewrite only finds the closest .htaccess file so it doesn't find the parent .htaccess file with rewrite rules.

Fixed by adding following rules to the bottom of "sites/default/files/.htaccess" from main ".htaccess" and then editing to accommodate new location.

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ /index.php?q=sites/default/files/$1 [L,QSA]

ImageCache then works perfectly.

#1

swappedsr - November 6, 2009 - 17:38

Tried this, does this code work with the ISAPI "Lite" version? Didn't work for me.

 
 

Drupal is a registered trademark of Dries Buytaert.