Welcome! Log In Create A New Profile

Advanced

rewrite для nginx

inc
May 05, 2011 07:29AM
поставил nginx до этого был апачь, туплю уже не один час с rewrite

задача # rewrite /sitename/freemovies/0001/24455/1000/xyz/ -> /sitename/freemovies/0001/index.php?id=24455&cn=1000&d1=xyz

в апаче .htaccess RewriteRule ^([^/]+)/([^/]+)/([^/]+)/?([^/]*)/?([^/]*)/?(.*).* $1/$2/index.php?id=$3&bn=$4&cn=$5&d1=$6 [L]

в nginx по идеи должно быть так rewrite ^([^/]+)/([^/]+)/([^/]+)/?([^/]*)/?([^/]*)/?(.*).* $1/$2/index.php?id=$3&bn=$4&cn=$5&d1=$6 last;

но выдаёт 404 (
Subject Author Posted

rewrite для nginx

inc May 05, 2011 07:29AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 99
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready