Advertisement
Guest User

.htaccess

a guest
Nov 26th, 2014
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
IO 0.76 KB | None | 0 0
  1. AddType x-mapp-php5 .php
  2. AddHandler x-mapp-php5 .php
  3.  
  4. Options +FollowSymLinks +ExecCGI
  5.  
  6. <IfModule mod_rewrite.c>
  7.   RewriteEngine On
  8.   AddType x-mapp-php5 .php
  9.   AddHandler x-mapp-php5 .php
  10.  
  11.   RewriteBase /
  12.  
  13.   # we skip all files with .something
  14.   RewriteCond %{REQUEST_URI} \..+$
  15.   RewriteCond %{REQUEST_URI} !\.html$
  16.   RewriteRule .* - [L]
  17.  
  18.   # we check if the .html version is here (caching)
  19.   RewriteRule ^$ index.html [QSA]
  20.   RewriteRule ^([^.]+)$ $1.html [QSA]
  21.   RewriteCond %{REQUEST_FILENAME} !-f
  22.  
  23.   # no, so we redirect to our front web controller
  24.    RewriteRule ^(.*)$ /index.php [QSA,L]
  25.  
  26.  
  27.  
  28. </IfModule>
  29. # big crash from our front web controller
  30. ErrorDocument 500 "<h2>Application error</h2>symfony application failed to start properly
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement