diff options
Diffstat (limited to 'public_html/_htaccess')
-rw-r--r-- | public_html/_htaccess | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/public_html/_htaccess b/public_html/_htaccess new file mode 100644 index 0000000..99a215c --- /dev/null +++ b/public_html/_htaccess @@ -0,0 +1,8 @@ +## enable mod_rewrie +RewriteEngine on +## deny access to *.rhtml and *.cache +RewriteRule \.(rhtml|cache)$ - [R=404,L] +## rewrite only if requested file is not found +RewriteCond %{SCRIPT_FILENAME} !-f +## handle request to *.html by index.cgi +RewriteRule ^.*\.html$ /~yourname/index.cgi |