Browse files

Simplify rewrite rules.

  • Loading branch information...
1 parent 340152e commit 9afd19d619352ac8919e015a9e3b043c2cf45eef Drak committed Jul 1, 2012
Showing with 4 additions and 13 deletions.
  1. +4 −13 web/.htaccess
  2. 0 web/{app.php → index.php}
@@ -2,23 +2,14 @@
# This file is required for short urls to function.
# ----------------------------------------------------------------------
-# security options if they work in your environment. If you get a 500 error then they wont.
-# These settings are best turned off in php.ini and will be on modern hosting environemnts.
-# php_flag magic_quotes_gpc off
# turn the rewriting engine on
RewriteEngine On
# For rewriting to work you might need allow overrides, e.g.:
#Options FollowSymlinks
-# Enable RewriteBase if Zikula is installed to a sub-directory
-# RewriteBase /your/path/to/Zikula
# rewrite any unknown directories and files
-RewriteCond %{REQUEST_FILENAME} -d [OR]
-RewriteCond %{REQUEST_FILENAME} -f [OR]
-RewriteCond %{REQUEST_FILENAME} -l
-#RewriteRule ^(.*)$ - [NC,L]
-RewriteRule ^(.*)$ app.php [QSA,L]
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME} !-L
+RewriteRule ^(.*)$ index.php [NC,L]
File renamed without changes.

0 comments on commit 9afd19d

Please sign in to comment.