daily pastebin goal
94%
SHARE
TWEET

Untitled

a guest Jul 13th, 2018 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Options +FollowSymLinks +ExecCGI
  2.  
  3.  
  4.  
  5.  
  6. <IfModule mod_rewrite.c>
  7.   RewriteEngine On
  8.  
  9.   # uncomment the following line, if you are having trouble
  10.   # getting no_script_name to work
  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. </IfModule>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top