Welcome! Log In Create A New Profile

Advanced

Rewrite

Posted by mrjones 
Rewrite
February 09, 2014 09:26PM
I hope someone can help me with this.

I have a script in a domain called domain.com then the rewrite rules is in domain.com/clients/api and the rewrite rules is made from apache which is .htaccess and it has:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]


Can anyone help me what to put/convert rewrite in my nginx configuration ?


Appreciate it.
Re: Rewrite
February 09, 2014 11:48PM
Tried this but not working:

location /clients/api {
try_files $uri $uri/ /index.php;
}


Any more ideas?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 155
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready