make rewrite conditional on the module being loaded

git-svn-id: file:///home/shish/svn/shimmie2/trunk@115 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2007-05-17 14:37:24 +00:00
parent 54acefbb99
commit fc49861fcb
1 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
<IfModule mod_rewrite.c>
RewriteEngine on RewriteEngine on
# rather than link to images/ha/hash and have an ugly filename, # rather than link to images/ha/hash and have an ugly filename,
@ -9,4 +10,4 @@ RewriteRule ^_thumbs/([0-9a-f]{2})([0-9a-f]{30})/.*\.jpg$ thumbs/$1/$1$2 [L]
# any requests for files which don't physically exist should be handled by index.php # any requests for files which don't physically exist should be handled by index.php
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?q=$1&%{QUERY_STRING} [L] RewriteRule ^(.*)$ index.php?q=$1&%{QUERY_STRING} [L]
</IfModule>