View Single Post
Old 09-05-2013, 06:13 PM   #587
fastrack20
Junior Member
fastrack20 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2011
Device: Kobo Vox
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,
fastrack20 is offline   Reply With Quote