dadleyy/lakestreet/master/public/.htaccess - Htaccess File

dadleyy/lakestreet/master/public/.htaccess

<IfModule mod_rewrite.c>
  Options +FollowSymLinks -MultiViews
  # Turn mod_rewrite on
  RewriteEngine On
  RewriteBase /

  RewriteRule ^api/camp/(.*)$ http://cpx.sizethreestudios.com/api/camp/$1 [P,L]
  RewriteRule ^api/town/(.*)$ http://cpx.sizethreestudios.com/api/town/$1 [P,L]
  RewriteRule ^api/twit/(.*)$ http://cpx.sizethreestudios.com/api/twit/$1 [P,L]

  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.html?$1 [L,QSA]

  RewriteCond %{THE_REQUEST} ^[A-Z]{3,}s(.*)/index.html [NC]
  RewriteRule ^ %1 [R=301,L]
</IfModule>

<filesMatch ".(html|htm|js|css)$">
  FileETag None
  <ifModule mod_headers.c>
    Header unset ETag
    Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
    Header set Pragma "no-cache"
    Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
  </ifModule>
</filesMatch>

On Github License

Files

Download PDF of Htaccess file
no-cache, Pragma, REQUEST_FILENAME, THE_REQUEST

Comments

Apache