-
Notifications
You must be signed in to change notification settings - Fork 8
/
.htaccess
29 lines (21 loc) · 876 Bytes
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Don't show directory listings for URLs which map to a directory.
Options -Indexes
# Follow symbolic links in this directory.
Options +FollowSymLinks
# Set default index file
DirectoryIndex index.html
# Redirect 404s to index file
ErrorDocument 404 /index.html
# Allow cgi-scripts to run in this directory
# Addhandler cgi-script .py .pl .cgi
# Having problems with mod_rewrite?
# http://stackoverflow.com/questions/1755826/mod-rewrite-path-issues
# http://stackoverflow.com/questions/25293601/angularjs-crashes-when-i-define-a-route-with-two-parameters-in-it
<ifModule mod_rewrite.c>
RewriteEngine on
# Don't rewrite if we match an existing file or directory path
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Redirect all other requests to the main index file for JS URL routing
RewriteRule (.*) ./index.html
</ifModule>