-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.htaccess
More file actions
32 lines (25 loc) · 725 Bytes
/
Copy path.htaccess
File metadata and controls
32 lines (25 loc) · 725 Bytes
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
29
30
31
32
Options -Indexes
<Files COPYING>
Deny from all
</Files>
<Files README>
Deny from all
</Files>
<IfModule mod_dir.c>
DirectoryIndex router.php
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine on
# Depending on your Apache configuration, you might need to set
# the RewriteBase directive below to the URL where you want to
# deploy your Textura application.
#
# RewriteBase /some/nice/url
# Add /s and /static as aliases for static content
RewriteRule ^s/(.*) site/static/$1 [NC,L]
RewriteRule ^static/(.*) site/static/$1 [NC,L]
# Let router handle everything else
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) router.php/$1 [NC,L]
</IfModule>