nginx에서 php 확장자 제거하기
nginx에서 php 확장자 제거하기 Edit /etc/nginx/sites-available/default.conf server { … location / { try_files $uri $uri/ $uri.html $uri.php$is_args$args; } location ~ \.php$ { try_files $uri =404; } … } Reference https://stackoverflow.com/questions/21911297/how-to-remove-both-php-and-html-extensions-from-url-using-nginx …