-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
58 lines (54 loc) · 1.58 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
50
51
52
53
54
55
56
57
58
RewriteEngine On
# forbidden
RewriteBase /OWR
RewriteRule ^OWR/.* index.php [R=301,L]
# same, forbidden
RewriteBase /OWR
RewriteRule ^install/.* index.php [R=301,L]
# don't want any index.php in the url
# only for GET requests
# RewriteBase /OWR
# RewriteCond ${REQUEST_METHOD} =GET
# RewriteRule ^index.php$ ./ [R=301,L]
# base service
# RewriteBase /OWR
# RewriteRule ^index(/(.*))?$ index.php/$2 [QSA,L]
# rest service
RewriteBase /OWR
RewriteRule ^rest(/(.*))?$ rest.php/$2 [QSA,L]
# internal redirect /action to ?do=action
# uncomment here for uri style = 'action'
#RewriteBase /OWR
#RewriteRule ^([a-zA-Z_]+)$ ?do=$1 [QSA,L]
# <VirtualHost *:80>
# DocumentRoot /var/www/OWR/
# ServerName owr.localhost
#
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule ^rest(/(.*))?$ rest.php/$2 [L]
#
# <Directory /var/www/OWR/>
# Options -Indexes FollowSymLinks
# AllowOverride None
# Order allow,deny
# allow from all
# </Directory>
#
# <Directory "/var/www/OWR/OWR/">
# Order deny,allow
# Deny from all
# </Directory>
#
# <Directory "/var/www/install/">
# Order deny,allow
# Deny from all
# </Directory>
#
# ErrorLog /var/log/apache2/error.log
# # Possible values include: debug, info, notice, warn, error, crit,
# # alert, emerg.
# LogLevel warn
#
# CustomLog /var/log/apache2/access.log combined
# </VirtualHost>