Reorder the .htaccess to make it more consistant

This commit is contained in:
Sébastien Lucas 2015-10-14 17:54:26 +02:00
parent eac1837e5e
commit 058fb303b3

View file

@ -13,6 +13,12 @@ DirectoryIndex index.php
#XSendFile On #XSendFile On
#XSendFileAllowAbove on #XSendFileAllowAbove on
###########################################
# On WAMP one user had to add this line in his httpd.conf
# None of the above was working
###########################################
#XSendFilePath <YourCalibrePath>
########################################### ###########################################
# If you want to use user based configuration with # If you want to use user based configuration with
# apache 2.4 + php-fpm enable this # apache 2.4 + php-fpm enable this
@ -20,12 +26,6 @@ DirectoryIndex index.php
########################################### ###########################################
#SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 #SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
###########################################
# On WAMP one user had to add this line in his httpd.conf
# None of the abose was working
###########################################
#XSendFilePath <YourCalibrePath>
<IfModule mod_rewrite.c> <IfModule mod_rewrite.c>
RewriteEngine on RewriteEngine on
RewriteRule ^download/(\d*)/(\d*)/.*\.kepub\.epub$ fetch.php?data=$1&db=$2&type=epub [L] RewriteRule ^download/(\d*)/(\d*)/.*\.kepub\.epub$ fetch.php?data=$1&db=$2&type=epub [L]