Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bernardeli/490719 to your computer and use it in GitHub Desktop.
Save bernardeli/490719 to your computer and use it in GitHub Desktop.
sudo a2enmod rewrite
in public/.htaccess
RewriteEngine On
RewriteCond %{THE_REQUEST} ^(GET|HEAD)
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{DOCUMENT_ROOT}/cache/$1.html -f
RewriteRule ^(.*)$ /cache/$1.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment