]> andersk Git - sql-web.git/blob - .htaccess.dev
git-svn-id: svn://presbrey.mit.edu/sql/mitsql@101 a142d4bd-2cfb-0310-9673-cb33a7e74f58
[sql-web.git] / .htaccess.dev
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 /~sql/dev/
10 #RewriteBase http://sql.mit.edu/
11 #RewriteBase /
12
13 #RewriteOptions MaxRedirects=1
14
15 #RewriteCond %{REQUEST_FILENAME}.php -f
16 #RewriteRule ^.* do/%{REQUEST_FILENAME}
17 #RewriteCond %{REQUEST_URI} !^/~administrator/mitsql/go/.+
18
19 ##RewriteCond %{REQUEST_URI} 
20 ##RewriteCond %{REQUEST_FILENAME} !-s
21 #RewriteRule ^do/.+$ - [L]
22
23 #RewriteCond %{IS_SUBREQ} !="true"
24 #RewriteRule ^.*$ do/index [R,L]
25
26 ##RewriteCond %{REQUEST_URI} ^.*/do/.+$
27 ##RewriteRule ^do/.+$ - [C]
28 #RewriteRule ^do/(.+)$ $1.php [PT,L]
29
30 #RewriteRule ^do/(.+)$ $1.php [L]
31
32 ## attempt 2
33 #RewriteCond %{REQUEST_URI} !^.*/do/.+$
34 #RewriteRule ^.*$ do/index [R,L]
35 #
36 #RewriteCond %{THE_REQUEST} ^(GET|HEAD)\ /.+\.php\ HTTP
37 #RewriteRule \.php$ - [F]
38 #
39 ##RewriteCond do/%{REQUEST_FILENAME}.php -f
40 #RewriteRule ^do/(.+)$ $1.php [L]
41
42 # attempt 3
43
44 #RewriteRule \.php$ - [F,C]
45
46 #RewriteCond %{REQUEST_URI} !^.*/do/.+$
47 #RewriteRule ^.*$ do/index [R,L]
48
49 #RewriteCond do/%{REQUEST_FILENAME}.php -f
50 #RewriteRule ^do/(.+)$ $1.php [L]
51
52 #RewriteCond %{THE_REQUEST} !^(GET|HEAD)\ /.+\.php\ HTTP
53 #RewriteCond %{THE_REQUEST} ^(GET|HEAD)\ /.+mitsql/do/.+\ HTTP
54
55 ## REVISION 4
56
57 RewriteCond %{REQUEST_URI} ^.*/do/(.+)$
58 RewriteRule ^do/(.+)$ $1.php [QSA]
59
60 RewriteCond %{REQUEST_FILENAME} !-f
61 RewriteRule .* do/index [R,L,QSA]
62
63 # now redundant after following conditions
64 #RewriteCond %{THE_REQUEST} ^(GET|HEAD)\ /.+\.php\ HTTP
65 #RewriteRule .* do/index [R,L,QSA]
66
67 RewriteCond %{THE_REQUEST} !^(GET|POST)\ /.+do/.+\ HTTP
68 RewriteCond %{REQUEST_FILENAME} !\.html$
69 RewriteCond %{REQUEST_FILENAME} !\.css$
70 RewriteCond %{REQUEST_FILENAME} !\.jpg$
71 RewriteRule .* do/index [R,L,QSA]
This page took 0.270841 seconds and 5 git commands to generate.