X-Git-Url: http://andersk.mit.edu/gitweb/sql-web.git/blobdiff_plain/79ffa7719bedd98ba94a37c1217dbafe56ea1a72..HEAD:/.htaccess.main diff --git a/.htaccess.main b/.htaccess.main index cddad44..bcb65c2 100755 --- a/.htaccess.main +++ b/.htaccess.main @@ -1,58 +1,5 @@ -#php_value auto_append_file "global.done.php" -#php_value auto_prepend_file "prepend.php" -#php_flag xdebug.remote_enable on -#php_flag xdebug.remote_autostart on -#php_value xdebug.remote_host "localhost" -#php_value xdebug.remote_port "9000" - RewriteEngine On RewriteBase /~sql/main/ -#RewriteBase http://sql.mit.edu/ -#RewriteBase / - -#RewriteOptions MaxRedirects=1 - -#RewriteCond %{REQUEST_FILENAME}.php -f -#RewriteRule ^.* do/%{REQUEST_FILENAME} -#RewriteCond %{REQUEST_URI} !^/~administrator/mitsql/go/.+ - -##RewriteCond %{REQUEST_URI} -##RewriteCond %{REQUEST_FILENAME} !-s -#RewriteRule ^do/.+$ - [L] - -#RewriteCond %{IS_SUBREQ} !="true" -#RewriteRule ^.*$ do/index [R,L] - -##RewriteCond %{REQUEST_URI} ^.*/do/.+$ -##RewriteRule ^do/.+$ - [C] -#RewriteRule ^do/(.+)$ $1.php [PT,L] - -#RewriteRule ^do/(.+)$ $1.php [L] - -## attempt 2 -#RewriteCond %{REQUEST_URI} !^.*/do/.+$ -#RewriteRule ^.*$ do/index [R,L] -# -#RewriteCond %{THE_REQUEST} ^(GET|HEAD)\ /.+\.php\ HTTP -#RewriteRule \.php$ - [F] -# -##RewriteCond do/%{REQUEST_FILENAME}.php -f -#RewriteRule ^do/(.+)$ $1.php [L] - -# attempt 3 - -#RewriteRule \.php$ - [F,C] - -#RewriteCond %{REQUEST_URI} !^.*/do/.+$ -#RewriteRule ^.*$ do/index [R,L] - -#RewriteCond do/%{REQUEST_FILENAME}.php -f -#RewriteRule ^do/(.+)$ $1.php [L] - -#RewriteCond %{THE_REQUEST} !^(GET|HEAD)\ /.+\.php\ HTTP -#RewriteCond %{THE_REQUEST} ^(GET|HEAD)\ /.+mitsql/do/.+\ HTTP - -## REVISION 4 RewriteCond %{REQUEST_URI} ^.*/do/(.+)$ RewriteRule ^do/(.+)$ $1.php [L,QSA] @@ -60,10 +7,6 @@ RewriteRule ^do/(.+)$ $1.php [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule .* do/index [R,L,QSA] -# now redundant after following conditions -#RewriteCond %{THE_REQUEST} ^(GET|HEAD)\ /.+\.php\ HTTP -#RewriteRule .* do/index [R,L,QSA] - RewriteCond %{THE_REQUEST} !^(GET|POST)\ /.+do/.+\ HTTP RewriteCond %{REQUEST_FILENAME} !\.html$ RewriteCond %{REQUEST_FILENAME} !\.css$