location /order-parts/ { try_files $uri $uri/ /index.html; } RewriteEngine On RewriteBase /order-parts/ RewriteRule (.*) index.html [PT,L]