Convert Apache .htaccess rewrite to nginx

ryd994 ryd994 at 163.com
Thu Jun 25 23:10:45 UTC 2015


On Wed, Jun 24, 2015, 15:31 nngin <nginx-forum at nginx.us> wrote:

searching the site, i found that this same question goes unanswered. Please
point me in the right direction of where i would be able to get help.

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,259810,259876#msg-259876

_______________________________________________
nginx mailing list
nginx at nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx


Not quite familiar with apache rewrite rules, but I think you just need:

rewrite ^(.*)/$ $1 permanent;
try_files $uri /index.php;

Not tested, apologies if I'm wrong.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20150625/8eaceb3c/attachment.html>


More information about the nginx mailing list