Skip to content

Wuild/TorrentCaching

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apache rewrite rules
====================
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule .* - [L]

RewriteRule ^(torrent|text|link)?\/?([0-F]{40})(\.torrent)?/?$ index.php?link_type=$1&infohash=$2 [NC,QSA,L]
RewriteRule ^([_A-Za-z0-9-]+)/?$ index.php?page_url=$1 [NC,QSA,L]
RewriteRule ^([_A-Za-z0-9-]+)\/([_A-Za-z0-9-]+)/?$ index.php?page_url=$1&page_action=$2 [NC,QSA,L]


nginx rewrite rules
===================

rewrite "^/(torrent|text|link)?\/?([0-F]{40})(\.torrent)?$" /index.php?link_type=$1&infohash=$2 last;
rewrite ^/([_A-Za-z0-9-]+)/?$ /index.php?page_url=$1 last;
rewrite ^/([_A-Za-z0-9-]+)\/([_A-Za-z0-9-]+)/?$ /index.php?page_url=$1&page_action=$2 last;

About

Opensource torrent caching system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published