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.
https://www.cloud9works.net/seo/how-to-301-redirect-with-htaccess/
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.
https://qiita.com/gotohiro55/items/7daa988db23a5a8355c1
<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]
</IfModule>
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
Related articles
- apache - i have a question about how to redirect htaccess 301
- cannot redirect htaccess (wordpress)
- apache - htaccess rewriterule is entered and the url is omitted, but it does not work as expected
- apache cannot start after deploying using container registry on heroku
- php - i want to redirect http to https with htaccess
- cannot access http2 on amazon linux 2 + apache 24
- apache - the laravel route cannot be set properly
- apache - how to redirect from the top page to the subdirectory url
- [mamp (apache)] i changed the apache port number to 8888, and now i cannot access the local environment
- apache - exclude a directory and redirect
- apache - i don't understand the htaccess settings
- redirect htaccess does not work well
- htaccess - how to redirect
- htaccess - regarding the redirect processing from the old domain to the new domain, i want to redirect the page that is "no
- what is the priority of htaccess redirect and php redirect? ?
- htaccess - about 301 redirect with parameter in httaccess
- htaccess - i want to solve the redirect loop when normalizing the url
- htaccess - about 301 redirect method
- htaccess - i want to redirect unnecessary generated pages (https://samplecom/page/2/) to top (https://samplecom/)
- php - apache cannot be started with xampp and an error occurs
- apache - htaccess setenvif doesn't work?
- php : .htaccess 301 Redirect except some addresses
- apache - adding a virtualhost tag for adding a subdomain to httpdconf affects the main domain
- python - django tutorial polls app doesn't work on production server
- apache - in an environment where direct links are restricted, a pdf in the same environment cannot be opened from a link in the
- i want to run a web application for internal sharing with apache + django
- apache - url query string cannot be matched with location directive
- apache directory index
- apache - i redirected the existing user by htaccess, but it may not be reflected unless i clear the (browser?) cache, so i want
If it is simple and good, you can issue a certificate on the same day from the web.
Let ’s Encrypt SSL Now! (v2)
Not tested, but what about the top?
Reference source