summaryrefslogtreecommitdiff
path: root/public_html/_htaccess
blob: e00ccf35da45cd7e05bf2381ca4363ae7d4b4831 (plain)
1
2
3
4
5
6
7
8
9
10
## enable mod_rewrie
RewriteEngine on
## deny access to *.rhtml and *.cache
#RewriteRule \.(rhtml|cache)$ - [R=404,L]   # not work on sakura internet
RewriteRule \.(rhtml|cache)$ - [F,L]
## rewrite only if requested file is not found
RewriteCond %{SCRIPT_FILENAME} !-f
## handle request to *.html and directories by index.cgi
#RewriteRule (\.html|/|^)$ /~username/index.cgi
RewriteRule (\.html|/|^)$ index.cgi