Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 542 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 542 Bytes

staticly

Generates static html files while normal loading.

Use it with following htaccess entry:

RewriteEngine On

RewriteCond %{REQUEST_URI} ^/$
RewriteCond %{QUERY_STRING} ^(s=.*)$
RewriteRule ^/? index.php?%1 [R=302,L]

RewriteCond %{REQUEST_METHOD} GET
RewriteCond %{DOCUMENT_ROOT}/static/$0/index.html -f
RewriteRule ^(.*)$ static/$1/index.html [L]