The site has been changed to a Wadax shared server.
The domain hasn't changed, but I forgot to prepare the SSL certificate,
If i access https: // {site URL}, you will be redirected to the Wadax sample page.
For http: // {site URL}, there is no problem.

Wadax shared server does not come with an SSL certificate,
Free SSL is on, but to use
It could be used by rewriting the link as follows.
* Example:

* Free SSL for Wadax shared server:

It will take a week or two to prepare a new SSL certificate.
Meanwhile, if it becomes a Wadax sample page,
It looks as if the site is closed,
Somehow https: // {site URL} → https: // {Wadax specified URL}
I want to redirect, but I can't redirect even if I set .htaccess.

The listed .htaccess file looks like this: I referred to the following site.

RewriteEngine On
RewriteRule ^ (. *) Https: //wx**.wadax.ne.jp/~sample-co-jp/$1 [R = 302]

Or at this time, all https access is once
I thought about how to make it http, but I wrote it as follows, but I couldn't.
The described .htaccess is as follows.
I referred to the following site.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond% {HTTPS} on
RewriteCond% {HTTP_HOST} www.sample.co.jp
RewriteRule ^. * $Http: //% {HTTP_HOST}% {REQUEST_URI} [R, L]

Neither has any errors, but no action.
I wonder if the address specified by https is a specification that cannot be redirected in the first place,
If i talk to Wadax support, "I think you can specify it, but writing .htaccess is not supported."
It seems that you can do it, but you can't do it.

The server you used before has free SSL,
Since you could use https: // ~ without changing the address,
I thought it would be fine if I had free SSL this time, and I thought the same way.

I'm sorry for the failure that caused my lack of knowledge.

  • Answer # 1

    If it is simple and good, you can issue a certificate on the same day from the web.

    Let ’s Encrypt SSL Now! (v2)

    RewriteEngine on
    RewriteBase /
    RewriteCond% {SERVER_PORT} 443
    RewriteRule ^ (. *) $Https: //wx**.wadax.ne.jp/~sample-co-jp/$1 [R = 302]

    Not tested, but what about the top?
    Reference source