19 lines
473 B
Plaintext
Executable File
19 lines
473 B
Plaintext
Executable File
RewriteEngine On
|
|
RewriteBase /
|
|
|
|
# rewrite root
|
|
RewriteRule ^$ /hook.php?%{QUERY_STRING}&file=index.hook [L]
|
|
|
|
# rewrite all hook files
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteRule ^(.*\.txt)$ /hook.php?%{QUERY_STRING} [L]
|
|
RewriteRule ^(.*\.html)$ /hook.php?%{QUERY_STRING} [L]
|
|
RewriteRule ^(.*\.xml)$ /hook.php?%{QUERY_STRING} [L]
|
|
|
|
# Server configuration
|
|
ErrorDocument 404 /404.html
|
|
|
|
# mime types
|
|
AddType application/x-font-woff woff
|