]> andersk Git - sql-web.git/blame - .htaccess.main
git-svn-id: svn://presbrey.mit.edu/php/lib@126 a142d4bd-2cfb-0310-9673-cb33a7e74f58
[sql-web.git] / .htaccess.main
CommitLineData
201253ba 1#php_value auto_append_file "global.done.php"
997305cf 2#php_value auto_prepend_file "prepend.php"
997305cf
JP
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
8RewriteEngine On
8ef0d58a 9RewriteBase /~sql/main/
88b7d384
JP
10#RewriteBase http://sql.mit.edu/
11#RewriteBase /
997305cf
JP
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
88b7d384 57RewriteCond %{REQUEST_URI} ^.*/do/(.+)$
79ffa771 58RewriteRule ^do/(.+)$ $1.php [L,QSA]
997305cf
JP
59
60RewriteCond %{REQUEST_FILENAME} !-f
61RewriteRule .* 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
88b7d384 67RewriteCond %{THE_REQUEST} !^(GET|POST)\ /.+do/.+\ HTTP
997305cf
JP
68RewriteCond %{REQUEST_FILENAME} !\.html$
69RewriteCond %{REQUEST_FILENAME} !\.css$
70RewriteCond %{REQUEST_FILENAME} !\.jpg$
71RewriteRule .* do/index [R,L,QSA]
This page took 0.050681 seconds and 5 git commands to generate.