gaotangshen/angularstart/master/app/.htaccess - Htaccess File

gaotangshen/angularstart/master/app/.htaccess

Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on

# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{REQUEST_URI} !/api

# otherwise forward it to index.html
RewriteRule ^.*$ - [NC,L]
RewriteRule ^ /app/index.html [NC,L]

#RewriteEngine On
  # If an existing asset or directory is requested go to it as it is
 # RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
 # RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
 # RewriteRule ^ - [L]

  # If the requested resource doesn't exist, use index.html
 # RewriteRule ^ /index.html

On Github License

Files

Download PDF of Htaccess file
DOCUMENT_ROOT, REQUEST_FILENAME, REQUEST_URI

Comments

Apache