Skip to content

Commit

Permalink
[change] 'public/_htaccess' to work on Sakura Internet Inernet
Browse files Browse the repository at this point in the history
  • Loading branch information
kwatch committed Mar 20, 2011
1 parent 6db7f4f commit 71f3826
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions public_html/_htaccess
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
## enable mod_rewrie
RewriteEngine on
## deny access to *.rhtml and *.cache
RewriteRule \.(rhtml|cache)$ - [R=404,L]
#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|/|^)$ /~username/index.cgi
RewriteRule (\.html|/|^)$ index.cgi

0 comments on commit 71f3826

Please sign in to comment.