Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
rewrite для nginx
- To: nginx-ru@xxxxxxxxx
- Subject: rewrite для nginx
- From: "inc" <nginx-forum@xxxxxxxx>
- Date: Thu, 05 May 2011 07:29:11 -0400
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=HeUr5eVMpWsJt0kcZRnaL9MfOHjuvW9SPVsU+JVyTsM=; b=ffmAq+HQvSGloH3zj0w9VxoCSMwbNtRaE3r4h+3fUdGZdYrwYxIE0Mb3HhfklDml7rbTNnpEx26Jp1ziA641JMYn5pWLpABMasxlbzjK8tZmtsbPAlflj79lOqtoErCg;
поставил 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 (
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,195743,195743#msg-195743
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|