summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormakoto kuwata <kwa@kuwata-lab.com>2011-03-21 07:33:40 +0900
committermakoto kuwata <kwa@kuwata-lab.com>2011-03-21 07:33:40 +0900
commit71f38264a4a830fc8c1cc222e7e492d3edbc0db4 (patch)
tree8824ba572c94d3bbcaee17ef15589a6ad83319ba
parent6db7f4f25c493eba0d57de47d0ca3749004800de (diff)
downloaderubis-71f38264a4a830fc8c1cc222e7e492d3edbc0db4.tar.gz
[change] 'public/_htaccess' to work on Sakura Internet Inernet
-rw-r--r--public_html/_htaccess6
1 files changed, 4 insertions, 2 deletions
diff --git a/public_html/_htaccess b/public_html/_htaccess
index 1eec816..e00ccf3 100644
--- a/public_html/_htaccess
+++ b/public_html/_htaccess
@@ -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