0

I'm trying to rewrite /anything/index.php to /anything/ in Nginx. I've Bing'd but nothing helps. Can anyone help me please.

CrazyFellow
  • 420
  • 3
  • 8
  • Possible duplicate of [nginx redirect loop, remove index.php from url](http://stackoverflow.com/questions/21687288/nginx-redirect-loop-remove-index-php-from-url) – cnst Jul 03 '16 at 00:04

1 Answers1

0

How about something like this?

rewrite ^/(.*)/index.php /$1/ last;
Dan Fairaizl
  • 2,172
  • 2
  • 28
  • 31
MkkHou
  • 1