Quantcast
Channel: Apache rewrite any uri to index.html but existing files - Server Fault
Browsing latest articles
Browse All 2 View Live

Answer by symcbean for Apache rewrite any uri to index.html but existing files

You could add RewriteCond %{REQUEST_FILENAME} !-f before the rewrite rule or just map /var/www/frontend/index.html as the 404 handler (but you need to override the 404 response with a 200).

View Article



Apache rewrite any uri to index.html but existing files

My front-end project is based on 1 file: frontend/index.htmlIt means that every request like /contact, /about, etc should be responded by index.html file.I was thought I can use these lines in my...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images