View Single Post
  #4  
Old 6th April 2013, 13:35
Phogo's Avatar
Phogo Phogo is offline
VIP
 
Join Date: Jan 2008
United Kingdom
Posts: 902
Default
Hey Ruffneck,

Try this,

Code:
# nginx configuration  error_page 500 /ts_error.php?errorid=500;  error_page 404 /ts_error.php?errorid=404;  error_page 403 /ts_error.php?errorid=403;  location = /index.html {   rewrite ^(.*)$ /index.php break; }  location / {   rewrite ^/(.*)-b-([0-9]+).ts(.*)$ /browse.php?cat=$2 break;   rewrite ^/(.*)-c-([0-9]+).ts(.*)$ /browse.php?browse_categories&category=$2 break;   rewrite ^/(.*)-d-([0-9]+).ts(.*)$ /download.php?id=$2 break;   rewrite ^/(.*)-s-([0-9]+).ts(.*)$ /details.php?id=$2 break;   rewrite ^/(.*)-a-(.*).ts(.*)$ /announce.php?passkey=$2 break;   rewrite ^/(.*)-u?([0-9]+).ts(.*)$ /userdetails.php?id=$2$3 break;   rewrite ^/(.*)-f([0-9]+).tsf(.*)$ /tsf_forums/index.php?fid=$2$3 break;   rewrite ^/(.*)-fd([0-9]+).tsf(.*)$ /tsf_forums/forumdisplay.php?fid=$2$3 break;   rewrite ^/(.*)-t([0-9]+).tsf(.*)$ /tsf_forums/showthread.php?tid=$2$3 break; }  location /.htaccess {   deny all; }
Reply With Quote