Sfoglia il codice sorgente

#53 - cleaning up .htaccess file

Alex Trofimov 12 anni fa
parent
commit
6f02393ddb
1 ha cambiato i file con 5 aggiunte e 23 eliminazioni
  1. 5 23
      .htaccess

+ 5 - 23
.htaccess

@@ -1,33 +1,15 @@
-Options -MultiViews -Indexes
 
 
-# TODO: clean it as much as possible
-# TODO: get rid of blogs and ads rewrite code
+Options -MultiViews -Indexes
 
 
-<IfModule mod_php4.c>
-    php_flag register_globals Off
-</IfModule>
 <IfModule mod_php5.c>
 <IfModule mod_php5.c>
     php_flag allow_url_include Off
     php_flag allow_url_include Off
     php_flag register_globals Off
     php_flag register_globals Off
 </IfModule>
 </IfModule>
 
 
 <IfModule mod_rewrite.c>
 <IfModule mod_rewrite.c>
-RewriteEngine on
-
-RewriteRule ^search/tag/([^/.]+)/{0,1}$  search.php?Tags=$1 [QSA,L]
-
-RewriteRule ^m/(.*)$  modules/index.php?r=$1 [QSA,L]
-
-RewriteRule ^page/(.*)$  page.php?i=$1 [QSA,L]
-
-RewriteRule ^storage/([a-zA-Z0-9]+)/([a-zA-Z0-9\.]+)  storage.php?o=$1&f=$2   [QSA,L]
-
-RewriteCond %{REQUEST_FILENAME} -f [OR]
-RewriteCond %{REQUEST_FILENAME} -d
-RewriteRule .+ - [L]
-RewriteRule ^([^/]+)$ profile.php?ID=$1 [QSA,L]
-
+    RewriteEngine on
+    RewriteRule ^m/(.*)$  modules/index.php?r=$1 [QSA,L]
+    RewriteRule ^page/(.*)$  page.php?i=$1 [QSA,L]
+    RewriteRule ^storage/([a-zA-Z0-9]+)/([a-zA-Z0-9\.]+)  storage.php?o=$1&f=$2   [QSA,L]
 </IfModule>
 </IfModule>
 
 
-AddType application/vnd.adobe.air-application-installer-package+zip .air
-AddType application/x-shockwave-flash .swf