0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

xserverでサブドメインがSSL化出来なかった

Last updated at Posted at 2025-07-11

0.原因

xserverの使ってるsslサービスのLet's Encryptがhttpで疎通確認するのに
.htaccess設定でhttpをhttpsに上書きしてたから。
覚えてないけどxserverが追加した設定な気がする。

1.修正方法

.htaccess編集から

RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

を一時的にコメントアウトするだけでSSL化出来ました。
SSL化出来たら↑のコメントアウト戻しましょう。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?