Forum: NGINX htaccess to NGINX conversion help

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
9dcea70350bfabbed0de15be5cc28b3e?d=identicon&s=25 Lee Wilson (leej_w)
on 2009-04-24 17:36
Hello,

I am wondering if anyone could help me convert this .htaccess file to
NGINX.  I have attempted to look for solutions on the internet but
cannot seem to solve the problem.

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . /projects/name/public/index.php

Many thanks in advance.

Lee
5640e332954fc0006aea97a155ce0afd?d=identicon&s=25 Igor Sysoev (Guest)
on 2009-04-24 17:59
(Received via mailing list)
On Fri, Apr 24, 2009 at 05:36:31PM +0200, Lee Wilson wrote:

> RewriteRule . /projects/name/public/index.php
>
> Many thanks in advance.

   location / {
       try_files  $uri  $uri/  /projects/name/public/index.php;
   }
This topic is locked and can not be replied to.