]> andersk Git - sql-web.git/blob - .htaccess
new templates
[sql-web.git] / .htaccess
1 php_value auto_append_file "global.done.php"
2 #php_value auto_prepend_file "prepend.php"
3 #php_flag xdebug.remote_enable on
4 #php_flag xdebug.remote_autostart on
5 #php_value xdebug.remote_host "localhost"
6 #php_value xdebug.remote_port "9000"
7
8 RewriteEngine On
9 RewriteBase /~presbrey/mitsql/
10
11 #RewriteOptions MaxRedirects=1
12
13 #RewriteCond %{REQUEST_FILENAME}.php -f
14 #RewriteRule ^.* do/%{REQUEST_FILENAME}
15 #RewriteCond %{REQUEST_URI} !^/~administrator/mitsql/go/.+
16
17 ##RewriteCond %{REQUEST_URI} 
18 ##RewriteCond %{REQUEST_FILENAME} !-s
19 #RewriteRule ^do/.+$ - [L]
20
21 #RewriteCond %{IS_SUBREQ} !="true"
22 #RewriteRule ^.*$ do/index [R,L]
23
24 ##RewriteCond %{REQUEST_URI} ^.*/do/.+$
25 ##RewriteRule ^do/.+$ - [C]
26 #RewriteRule ^do/(.+)$ $1.php [PT,L]
27
28 #RewriteRule ^do/(.+)$ $1.php [L]
29
30 ## attempt 2
31 #RewriteCond %{REQUEST_URI} !^.*/do/.+$
32 #RewriteRule ^.*$ do/index [R,L]
33 #
34 #RewriteCond %{THE_REQUEST} ^(GET|HEAD)\ /.+\.php\ HTTP
35 #RewriteRule \.php$ - [F]
36 #
37 ##RewriteCond do/%{REQUEST_FILENAME}.php -f
38 #RewriteRule ^do/(.+)$ $1.php [L]
39
40 # attempt 3
41
42 #RewriteRule \.php$ - [F,C]
43
44 #RewriteCond %{REQUEST_URI} !^.*/do/.+$
45 #RewriteRule ^.*$ do/index [R,L]
46
47 #RewriteCond do/%{REQUEST_FILENAME}.php -f
48 #RewriteRule ^do/(.+)$ $1.php [L]
49
50 #RewriteCond %{THE_REQUEST} !^(GET|HEAD)\ /.+\.php\ HTTP
51 #RewriteCond %{THE_REQUEST} ^(GET|HEAD)\ /.+mitsql/do/.+\ HTTP
52
53 ## REVISION 4
54
55 RewriteCond %{REQUEST_URI} ^.*/mitsql/do/(.+)$
56 RewriteRule ^do/(.+)$ $1.php [QSA]
57
58 RewriteCond %{REQUEST_FILENAME} !-f
59 RewriteRule .* do/index [R,L,QSA]
60
61 # now redundant after following conditions
62 #RewriteCond %{THE_REQUEST} ^(GET|HEAD)\ /.+\.php\ HTTP
63 #RewriteRule .* do/index [R,L,QSA]
64
65 RewriteCond %{THE_REQUEST} !^(GET|POST)\ /.+mitsql/do/.+\ HTTP
66 RewriteCond %{REQUEST_FILENAME} !\.html$
67 RewriteCond %{REQUEST_FILENAME} !\.css$
68 RewriteCond %{REQUEST_FILENAME} !\.jpg$
69 RewriteRule .* do/index [R,L,QSA]
This page took 0.100245 seconds and 5 git commands to generate.