Groups
Groups
Sign in
Groups
Groups
a-blog cms forum
Conversations
Labels
About
Send feedback
Help
さくらのレンタルサーバーで常時SSLを設定すると404エラーになる
669 views
Skip to first unread message
口田聖子
unread,
Jan 27, 2017, 12:41:50 AM
1/27/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to a-blog cms forum
いつもお世話になっております。
さくらのレンタルサーバーのビジネスプロに、a-blog cmsで常時SSLを設定することになりましたが
https://developer.a-blogcms.jp/howtoinstall/open/sakura-ssl.html
こちらのページの通りに設定すると全ページ404エラーになってしまいます。
サイトが制作中なので、a-blog cmsは一階層下の「ablogcms」ディレクトリとなっています。
ドメインはwwwありで申請し、a-blog cmsのドメイン設定もwwwありです。
SSLなしだと問題なく稼働します。
rewrite_baseの変更やwwwありなし転送など、.htaccessで一般的に考えられることは全て試しました。
もしかすると、この方法だと階層を下げることはできないのでしょうか?
宜しくお願いいたします。
山本一道@アップルップル
unread,
Jan 27, 2017, 1:59:38 AM
1/27/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to a-blo...@googlegroups.com
https://developer.a-blogcms.jp/howtoinstall/open/sakura-ssl.html
普通に書いてある通りに設定してみましたが、404 になることはありませんでした。
そのままだと
http://honban-site.com/ablogcms/
にアクセスした際に
https://honban-site.com/
にリダイレクトされてしまいましたが
RewriteEngine on の直後に
RewriteCond %{ENV:HTTPS} !^on$
RewriteCond %{HTTP:X-Sakura-Forwarded-For} ^$
RewriteRule ^(.*)$ https://%{HTTP_HOST}/ablogcms/$1 [R,L]
と書くことで、
https://honban-site.com/ablogcms/
に無事リダイレクトされるようになりました。
さくらのレンタルサーバーのスタンダードでのテスト結果になります。
もう一度、ご確認ください。
口田聖子
unread,
Jan 30, 2017, 12:42:45 AM
1/30/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to a-blog cms forum
ありがとうございます。
別途ご連絡しましたが、下記を試しても404エラーが回復しませんでした。
・最新バージョンにアップグレード
・a-blog cmsをサーバーの最上層へ移動
そちらでも見ていただけると助かりますが、クリーンインストールも検討したいと思います。
Reply all
Reply to author
Forward
0 new messages