|
#1
|
|||
|
|||
pls help with Nginx !
hi !
where i must add my .htaccess in nginx.conf file ? am added rewrite ^/index.html$ /index.php last; rewrite ^/(.*)-b-([0-9]+).ts(.*)$ /browse.php?cat=$2 last; rewrite ^/(.*)-c-([0-9]+).ts(.*)$ /browse.php?browse_categories&category=$2 last; rewrite ^/(.*)-d-([0-9]+).ts(.*)$ /download.php?id=$2 last; rewrite ^/(.*)-s-([0-9]+).ts(.*)$ /details.php?id=$2 last; rewrite ^/(.*)-a-(.*).ts(.*)$ /announce.php?passkey=$2 last; rewrite ^/(.*)-u?([0-9]+).ts(.*)$ /userdetails.php?id=$2$3 last; rewrite ^/(.*)-f([0-9]+).tsf(.*)$ /tsf_forums/index.php?fid=$2$3 last; rewrite ^/(.*)-fd([0-9]+).tsf(.*)$ /tsf_forums/forumdisplay.php?fid=$2$3 last; rewrite ^/(.*)-t([0-9]+).tsf(.*)$ /tsf_forums/showthread.php?tid=$2$3 last; but is not work:( |
#2
|
||||
|
||||
Could you paste your original .htaccess file for us to have a look at?
|
#3
|
|||
|
|||
TS 5.6 .htaccess
PHP Code:
PHP Code:
|
#4
|
||||
|
||||
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; } |
#5
|
|||
|
|||
is not worked !
i see this in my browser : Code:
$_COOKIE)) { $_COOKIE = strip_magic_quotes ($_COOKIE); } } if ((!isset ($HTTP_POST_VARS) AND isset ($_POST))) { $HTTP_POST_VARS = $_POST; $HTTP_GET_VARS = $_GET; $HTTP_SERVER_VARS = $_SERVER; $HTTP_COOKIE_VARS = $_COOKIE; $HTTP_ENV_VARS = $_ENV; $HTTP_POST_FILES = $_FILES; } if (!@get_magic_quotes_gpc ()) { if (is_array ($HTTP_GET_VARS)) { while (list ($k, $v) = each ($HTTP_GET_VARS)) { if (is_array ($HTTP_GET_VARS[$k])) { while (list ($k2, $v2) = each ($HTTP_GET_VARS[$k])) { $HTTP_GET_VARS[$k][$k2] = addslashes ($v2); } @reset ($HTTP_GET_VARS[$k]); continue; } else { $HTTP_GET_VARS[$k] = addslashes ($v); continue; } } @reset ($HTTP_GET_VARS); } if (is_array ($HTTP_POST_VARS)) { while (list ($k, $v) = each ($HTTP_POST_VARS)) { if (is_array ($HTTP_POST_VARS[$k])) { while (list ($k2, $v2) = each ($HTTP_POST_VARS[$k])) { $HTTP_POST_VARS[$k][$k2] = addslashes ($v2); } @reset ($HTTP_POST_VARS[$k]); continue; } else { $HTTP_POST_VARS[$k] = addslashes ($v); continue; } } @reset ($HTTP_POST_VARS); } if (is_array ($HTTP_COOKIE_VARS)) { while (list ($k, $v) = each ($HTTP_COOKIE_VARS)) { if (is_array ($HTTP_COOKIE_VARS[$k])) { while (list ($k2, $v2) = each ($HTTP_COOKIE_VARS[$k])) { $HTTP_COOKIE_VARS[$k][$k2] = addslashes ($v2); } @reset ($HTTP_COOKIE_VARS[$k]); continue; } else { $HTTP_COOKIE_VARS[$k] = addslashes ($v); continue; } } @reset ($HTTP_COOKIE_VARS); } } ?> Fatal error: Call to undefined function gzip() in C:\web\browse.php on line 18 register_globals = off am added this settings in php.ini and worked ! is correct ? but ts_seo is not worked !:) |
Tags |
nginx , pls |
|
|