Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comments
Comment #1
swappedsr CreditAttribution: swappedsr commentedTried this, does this code work with the ISAPI "Lite" version? Didn't work for me.
Comment #2
pabloid CreditAttribution: pabloid commentedI tried this with ISAPI_Rewrite full version, but since my drupal installation is in a subfolder (home), the rewrite snippet dosn't work.
This worked:
Comment #3
fizk CreditAttribution: fizk commented