source: .htaccess @ 22257f

Revision 22257f, 1.6 KB checked in by pierre-alain <pierre-alain@…>, 8 years ago (diff)

v0.1a2

  • Property mode set to 100644
Line 
1RewriteEngine On
2
3# forbidden
4RewriteBase /OWR
5RewriteRule ^OWR/.* index.php [R=301,L]
6# same, forbidden
7RewriteBase /OWR
8RewriteRule ^install/.* index.php [R=301,L]
9# don't want any index.php in the url
10# only for GET requests
11# RewriteBase /OWR
12# RewriteCond ${REQUEST_METHOD} =GET
13# RewriteRule ^index.php$ ./ [R=301,L]
14# base service
15# RewriteBase /OWR
16# RewriteRule ^index(/(.*))?$ index.php/$2 [QSA,L]
17# rest service
18RewriteBase /OWR
19RewriteRule ^rest(/(.*))?$ rest.php/$2 [QSA,L]
20# internal redirect /action to ?do=action
21# uncomment here for uri style = 'action'
22#RewriteBase /OWR
23#RewriteRule ^([a-zA-Z_]+)$ ?do=$1 [QSA,L]
24
25
26
27# <VirtualHost *:80>
28#         DocumentRoot /var/www/OWR/
29#         ServerName owr.localhost
30#
31#         RewriteCond %{REQUEST_FILENAME} !-f
32#         RewriteCond %{REQUEST_FILENAME} !-d
33#         RewriteRule ^rest(/(.*))?$ rest.php/$2 [L]
34#
35#         <Directory /var/www/OWR/>
36#                 Options -Indexes FollowSymLinks
37#                 AllowOverride None
38#                 Order allow,deny
39#                 allow from all
40#         </Directory>
41#
42#          <Directory "/var/www/OWR/OWR/">
43#                 Order deny,allow
44#                 Deny from all
45#         </Directory>
46#
47#         <Directory "/var/www/install/">
48#                 Order deny,allow
49#                 Deny from all
50#         </Directory>
51#
52#         ErrorLog /var/log/apache2/error.log
53#         # Possible values include: debug, info, notice, warn, error, crit,
54#         # alert, emerg.
55#         LogLevel warn
56#
57#         CustomLog /var/log/apache2/access.log combined
58# </VirtualHost>
Note: See TracBrowser for help on using the repository browser.