.htaccessについて
「ロリポップレンタルサーバー」で.htaccessファイルを設置したのですが、
なぜか「500エラー」が出てしまいます。
何が原因なのか分からないでしょうか?
【問題の.htaccessファイル】
<Files ~ "^\.(htaccess|htpasswd)$">
deny from all
</Files>
Options +MultiViews
Options -Indexes
ErrorDocument 401 http://hoge.com/error/401.htm
ErrorDocument 403 http://hoge.com/error/403.htm
ErrorDocument 404 http://hoge.com/error/404.htm
ErrorDocument 500 http://hoge.com/error/500.htm
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.hoge\.com)(:80)? [NC]
RewriteRule ^(.*) http://hoge.com/$1 [R=301,L]
DirectoryIndex index.htm
Redirect permanent http://hoge.com/sub http://sub.hoge.com/
order deny,allow
[EOF]
ちなみに「.htaccess Editor」というサイトで作ったものを少しいじりました。
お礼
回答いただきありがとうございました!!