I used shared SSL for the inquiry page, but I always made the site SSL, so I want to redirect it with .htaccess, but it doesn't work.

There is a shared SSL link on the external site that you cannot change here.

Simply presenting tips and reference information will help, so can you teach me? Thank you.

Error message

I can cope with the standard settings such as unification of the presence/absence of www, http → https, ordinary 301 redirect, etc., because I learned how to set it up ...
Since there is no basic knowledge, the application will not work, and even if you search, you will not be able to find the same case.

Applicable source code

Redirect source (shared SSL page)

Redirect to

I understand that it is not enough to specify as follows.

RewriteRule Redirect source URL Redirect destination URL [R = 301, L]

Redirect permanent redirect URL redirect URL

RewriteCond% {HTTP_HOST} redirect URL
RewriteRule ^ (. *) $Redirect URL $1 [R = 301, L]

Supplemental information (FW/tool version etc.)

The rental server is GMO Hosting iCLUSTA +.

  • Answer # 1


    Redirect permanent redirect URL redirect URL

    This should be fine, but how did you actually write it?

    Put the following intohttps://secure02.blue.shared-server.net/configuration file or.htaccess.

    Redirect permanent /example.com/contact https://example.com/contact

    When rewriting. Modified version.

    RewriteEngine On
    RewriteCond% {HTTP_HOST} ^ secure02 \ .blue \ .shared-server \ .net $
    RewriteRule ^ example.com/contact /(.*)$https://example.com/contact/$1 [R = 301]