-
Notifications
You must be signed in to change notification settings - Fork 3
/
.htaccess
49 lines (46 loc) · 1.62 KB
/
.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# In local: in httpd/conf/projects/dev1base.conf :
# alias /dev1base F:/projects/dev1base/trunk/..../webroot/
######################################
# Root .htaccess
# Case 1: When installing in root but without setting DOCUMENT_ROOT, e.g, http://www.example.com/ :
# In the root above /app (say, public_html)
# -->
# Options +FollowSymLinks # needed for some hosts, especially GoDaddy
#<IfModule mod_rewrite.c>
# RewriteEngine on
# RewriteBase /app/
# RewriteRule ^$ webroot/ [L]
# RewriteRule (.*) webroot/$1 [L]
# </IfModule>
# <--
# Case 2: When installing in folder next to root, e.g., http://www.example.com/dev1base/ :
# In the root above /app (say, public_html/dev1base/)
# -->
#<IfModule mod_rewrite.c>
# RewriteEngine on
# RewriteBase /dev1base/app/
# RewriteRule ^$ webroot/ [L]
# RewriteRule (.*) webroot/$1 [L]
# </IfModule>
########################################
# This .htaccess
# Case 1: When installing in root but without setting DOCUMENT_ROOT, e.g, http://www.example.com/ :
#<IfModule mod_rewrite.c>
# RewriteEngine on
# RewriteBase /app/
# RewriteRule ^$ webroot/ [L]
# RewriteRule (.*) webroot/$1 [L]
# </IfModule>
# Case 2: When installing in folder next to root, e.g., http://www.example.com/dev1base/ :
#<IfModule mod_rewrite.c>
# RewriteEngine on
# RewriteBase /dev1base/app/
# RewriteRule ^$ webroot/ [L]
# RewriteRule (.*) webroot/$1 [L]
# </IfModule>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /app/
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
</IfModule>