Htaccess File

Symfony-Plugins/sfSympalPlugin/master/test/fixtures/project/web/.htaccess

DOCUMENT_ROOT, GET, HTTP_HOST, REQUEST_FILENAME, REQUEST_METHOD, REQUEST_URI
Options +FollowSymLinks +ExecCGI

<IfModule mod_rewrite.c>
  RewriteEngine On

  # uncomment the following line, if you are having trouble
  # getting no_script_name to work
  #RewriteBase /

  # we skip all files with .something
  #RewriteCond %{REQUEST_URI} ..+$
  #RewriteCond %{REQUEST_URI} !.html$
  #RewriteRule .* - [L]

  # we check if the .html version is here (caching)
  RewriteCond %{REQUEST_METHOD} GET
  RewriteCond %{DOCUMENT_ROOT}/cache/%{HTTP_HOST}/%{REQUEST_URI}index.html.php -f
  RewriteRule ^(.*) cache/%{HTTP_HOST}/$1index.html.php [L]

  RewriteCond %{REQUEST_METHOD} GET
  RewriteCond %{DOCUMENT_ROOT}/cache/%{HTTP_HOST}/%{REQUEST_URI}.html.php -f
  RewriteRule ^(.*) cache/%{HTTP_HOST}/$1.html.php [L]

  RewriteCond %{REQUEST_METHOD} GET
  RewriteCond %{DOCUMENT_ROOT}/cache/%{HTTP_HOST}/%{REQUEST_URI}.php -f
  RewriteRule ^(.*) cache/%{HTTP_HOST}/$1.php [L]

  RewriteCond %{REQUEST_FILENAME} !-f

  # no, so we redirect to our front web controller
  RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
Exit mobile version