http to https rewriting...

SkyCityCZ
edited November -1 in Support Forums

How can i do it?

Comments

  • TheCrafters
    edited November -1

    @SkyCityCZ said:
    How can i do it?

    Create a file called .htaccess in your /htdocs folder and put this in it:
    RewriteEngine on RewriteCond %{HTTPS} !on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

  • tristanwu17
    edited November -1

    @TheCrafters said:

    @SkyCityCZ said:
    How can i do it?

    Create a file called .htaccess in your /htdocs folder and put this in it:
    RewriteEngine on RewriteCond %{HTTPS} !on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

    I did everythiing but now i cant access my website it says
    This site can’t provide a secure connectionbuyaffordablepcs.ezyro.com sent an invalid response.
    Try running Windows Network Diagnostics.
    ERR_SSL_PROTOCOL_ERROR

  • ChrisPAR
    edited November -1

    @tristanwu17 said:

    @TheCrafters said:

    @SkyCityCZ said:
    How can i do it?

    Create a file called .htaccess in your /htdocs folder and put this in it:
    RewriteEngine on RewriteCond %{HTTPS} !on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

    I did everythiing but now i cant access my website it says
    This site can’t provide a secure connectionbuyaffordablepcs.ezyro.com sent an invalid response.
    Try running Windows Network Diagnostics.
    ERR_SSL_PROTOCOL_ERROR

    That website redirects me to ads now, did you delete it?

    Did you have an SSL certificate for that subdomain in the first place?

    Also please do not go and bump old threads, it is preferable to create a new one for your issue.