CPIサーバーで.htaccessを入力するとInternal Server Errorになります。
実現したいこと
.htaaccessにて、https://→をhttp://にするリダイレクトを入力したいです。
発生している問題・エラーメッセージ
Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at webmaster@asunooto.co.jp to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log.
該当のソースコード
Options +SymLinksIfOwnerMatch RewriteEngine on RewriteCond %{HTTPS} on RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
試したこと
https://support.cpi.ad.jp/manual/sv-basic/tools/tips-htaccess
を参考に、冒頭に「Options +SymLinksIfOwnerMatch」を入力しました。
Apacheのエラーログは見られないのですか?
.htaccessを使うのは初めてですか?それとも今までは正常に機能してましたか?
otnさん、質問に答えていただきありがとうございます。
.htaccessを使うのは初めてで、新規作成です。
Apacheのエラーログについて、勉強不足で、Apacheを初めて聞いたため、教えていただけると嬉しいです。
ありがとうございます。
> .htaccessを使うのは初めてで、新規作成です。
であれば、回答にあるように不正な文字の混入でしょう。
> Apacheのエラーログについて、
そこにエラーの原因が書いてあります。
> 教えていただけると嬉しいです。
レンタルサーバーの場合は、レンタルサーバー会社のマニュアルを見ましょう。
第三者には不明です。
otnさんありがとうございます。
