Permalink
Browse files

Fixed .htaccess

  • Loading branch information...
asiragusa committed Aug 17, 2014
1 parent 15c2abf commit 83f4b1a54c9d1651f03c72c2975080b6118bfe46
Showing with 3 additions and 3 deletions.
  1. +3 −3 web/.htaccess
View
@@ -3,7 +3,7 @@
# mod_rewrite). Additionally, this reduces the matching process for the
# start page (path "/") because otherwise Apache will apply the rewriting rules
# to each configured DirectoryIndex file (e.g. index.php, index.html, index.pl).
DirectoryIndex app_dev.php
DirectoryIndex app.php
<IfModule mod_rewrite.c>
RewriteEngine On
@@ -30,15 +30,15 @@ DirectoryIndex app_dev.php
# - use Apache >= 2.3.9 and replace all L flags by END flags and remove the
# following RewriteCond (best solution)
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^app_dev\.php(/(.*)|$) %{ENV:BASE}/$2 [R=301,L]
RewriteRule ^app\.php(/(.*)|$) %{ENV:BASE}/$2 [R=301,L]
# If the requested filename exists, simply serve it.
# We only want to let Apache serve files and not directories.
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule .? - [L]
# Rewrite all other queries to the front controller.
RewriteRule .? %{ENV:BASE}/app_dev.php [L]
RewriteRule .? %{ENV:BASE}/app.php [L]
</IfModule>
<IfModule !mod_rewrite.c>

0 comments on commit 83f4b1a

Please sign in to comment.