-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[change] 'public/_htaccess' to work on Sakura Internet Inernet
- Loading branch information
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |