I am trying to get the kepubs to download properly on my Kobo Glo. I can get epubs to work fine but when I enable URL rewriting I get 404s when my kobo browser attempts to pull the kepub. I am fairly certain that the URL rewrite in my NGINX config is whats causing the issue; however, I am having difficulties understanding the regular expression that it uses to perform the rewrite. Can someone explain this to me?
rewrite ^/download/(\d+)/(\d+)/.*\.(.*)$ /fetch.php?data=$1&db=$2&type=$3 last;
rewrite ^/download/(\d+)/.*\.(.*)$ /fetch.php?data=$1&type=$2 last;
Thanks,
|