# nginx 에서 index.html request_uri 삭제하기
server {
server_name domain.com;
if ( $request_uri ~ "/index.(php|html?)" ) {
rewrite ^ /$1 permanent;
}
}
# nginx 에서 index.html request_uri 삭제하기
server {
server_name domain.com;
if ( $request_uri ~ "/index.(php|html?)" ) {
rewrite ^ /$1 permanent;
}
}