Используйте конструкцию try_files $uri $uri/ /index.php; On Apr 26, 2015 8:25 PM, "sadus" <nginx-fo...@nginx.us> wrote:
> Ребятки помогите пожалуйста перевести .htaccess в конфиг nginx > никак не получается > > AddDefaultCharset utf-8 > Options -Indexes > > DirectoryIndex index.php index.html > > RewriteEngine On > > RewriteRule ^.htaccess$ - [F] > > # if a directory or a file exists, use it directly > RewriteCond %{REQUEST_FILENAME} !-f > RewriteCond %{REQUEST_FILENAME} !-d > > # otherwise forward it to index.php > RewriteRule . index.php > > Posted at Nginx Forum: > http://forum.nginx.org/read.php?21,258386,258386#msg-258386 > > _______________________________________________ > nginx-ru mailing list > nginx-ru@nginx.org > http://mailman.nginx.org/mailman/listinfo/nginx-ru
_______________________________________________ nginx-ru mailing list nginx-ru@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-ru