From a70c44bdc14090a54b0fd2dd0c111db140b741c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Sun, 8 Jul 2012 20:50:08 +0200 Subject: [PATCH] Fix URL rewriting rules --- README | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README b/README index 5b6c4cb..0f3cf43 100644 --- a/README +++ b/README @@ -55,7 +55,7 @@ server { index feed.php; location /download/ { - rewrite ^/download/(\d+)/.*\.(.*)$ /fetch.php?id=$1&type=$2 last; + rewrite ^/download/(\d+)/.*\.(.*)$ /fetch.php?data=$1&type=$2 last; break; } @@ -106,7 +106,7 @@ any other custom OPDS catalog. * Nginx : location /download/ { - rewrite ^/download/(\d+)/.*\.(.*)$ /fetch.php?id=$1&type=$2 last; + rewrite ^/download/(\d+)/.*\.(.*)$ /fetch.php?data=$1&type=$2 last; break; } @@ -114,14 +114,14 @@ any other custom OPDS catalog. the .htaccess : RewriteEngine on RewriteOptions inherit - RewriteRule ^download/(.*)/.*\.(.*)$ fetch.php?id=$1&type=$2 [L] + RewriteRule ^download/(.*)/.*\.(.*)$ fetch.php?data=$1&type=$2 [L] if you have not mod_xsendfile, in the config file simply set : $config['cops_x_accel_redirect'] = "location"; * Cherokee (Thanks to Christophe) : * Add a Behavior of type Regular Expression : /cops/download/(.*)/.*\.(.*)$ * Choose the handler Redirection - * Add the substitution regexp : "/cops/download/(.*)/.*\.(.*)$" --> "/cops/fetch.php?id=$1&type=$2" + * Add the substitution regexp : "/cops/download/(.*)/.*\.(.*)$" --> "/cops/fetch.php?data=$1&type=$2" = Known problems =