应用笔记 · 2014年2月10日

NGINX Remove index.php /index.php/something/more/ to /something/more

From:http://serverfault.com/questions/252090/nginx-remove-index-php-index-php-something-more-to-something-more

trying to clean urls in NGINX using framework DooPHP.

This => – http://example.com/index.php/something/more/ To This => – http://example.com/something/more/

I want to remove (clean url) the “index.php” from the url if someone try to enter in the first form. Like a permanent redirect.

How to do this config on NGINX?

Thanks.

[Update: Actual nginx config]