Clean URLs code updated to deal with tar, gz and tar.gz files
Posted October 13th, 2008 by jstevens
The mod_rewrite rule for Drupal Clean URL support has been updated to deal with tar.gz files, (and .tar and .gz, etc).
Here is the code I used:
(drupal_clean_urls.conf)
<Directory /srv/www/vhosts/drupal>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !^/$
RewriteCond %{REQUEST_FILENAME} !^/(files|misc|uploads)(/.*)?
RewriteCond %{REQUEST_FILENAME} !\.(php|ico|png|jpg|gif|css|js|html|tar|gz?)(\W.*)?
RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]
</Directory>
- jstevens's blog
- Login or register to post comments