RewriteEngine On RewriteBase / # If the requested filename/directory does not exist RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Rewrite all traffic to index.html RewriteRule ^(.*)$ /index.html [L]