wiebl/todo/master/.htaccess - Htaccess File

wiebl/todo/master/.htaccess

# Remove the trailing slash from routes
DirectorySlash On

# Enable the RewriteEngine
RewriteEngine on
RewriteBase /sandbox/demo/todo

# These conditions ensure that the file does not exist and that the current
# request URI is not the index.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !index
RewriteCond %{REQUEST_URI}  !(.png|.jpg|.gif|.jpeg|.bmp|.js|.css)$

# Redirect remaining requests to the index.html file
RewriteRule (.*) index.html [NC,L]

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME, REQUEST_URI

Comments

Apache