Requesting SSL HELP

Discussion in 'Web Design & Development' started by Quarterly, Jun 14, 2018.

Thread Status:
Not open for further replies.
Welcome to MCTrades, the modern Minecraft marketplace. Why not stay a while to chat, trade, and earn by registering?
  1. Quarterly

    Quarterly Well-Known Trader
    Thread Starter

    Minecraft Accounts: Quarterly
    Posts:
    116
    Ratings:
    +8
    Hey there,
    I bought an SSL from Namecheap and set it up on my VPS which is using VestaCP. I cant get it to work when I go to mcalts.site for it to go to the secure version which is the https... its going to http...

    Any one know how to fix?

    Discord: RichardC#6459

    Thanks!
     
  2. Fumbe

    Fumbe Well-Known Trader
    BANNED EMERALD DIAMOND

    Minecraft Accounts: p0kemon SkyWarsDad
    Posts:
    199
    Ratings:
    +71
    u need to add .htaccess which is easy here is the code

    RewriteEngine On
    RewriteCond %{HTTP_HOST} mcalts.site [NC]
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://mcalts.site/ [R,L]


    Go to ur vps and create a file named .htaccess and paste that in it.
    Banned Reason: Scamming User #3159 (Dawson) - Dispute #23499 Ban Ends: Never
     
  3. Shalev

    Shalev Developer
    EMERALD DIAMOND

    Minecraft Accounts: zeShalev
    Posts:
    80
    Ratings:
    +45
    As Ade said,

    you go to the public_html [main folder that contains all your files]

    you create a file named .htaccess

    in the file you put:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} yourdomain.example [NC]
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://yourdomain.example/ [R,L]
     
  4. Tim

    Tim Uh, can I express my real opinions here?
    EMERALD DIAMOND

    Posts:
    395
    Ratings:
    +240
    #4 Tim, Jun 16, 2018
    Last edited: Jun 16, 2018
    Add cloudflare and force ssl redirect, done.
     
  5. Shalev

    Shalev Developer
    EMERALD DIAMOND

    Minecraft Accounts: zeShalev
    Posts:
    80
    Ratings:
    +45
    He has SSL, He want it to auto redrict from http to https.
     
  6. Jayson

    Jayson Emerald
    EMERALD

    Minecraft Accounts: Parse JaysonF
    Posts:
    1,103
    Ratings:
    +160
    #6 Jayson, Jun 16, 2018
    Last edited: Jun 16, 2018
    If your host is using Apache/HTTPd, create a .htaccess file in the main directory of your website and take a look at https://stackoverflow.com/questions/10489895/http-to-https-through-htaccess place the contents of the 2nd answer’s first code box.

    If your website is already using PHP, there is an option to redirect through there as well.

    Take a look at https://stackoverflow.com/questions/5106313/redirecting-from-http-to-https-with-php .
    For a JavaScript system, please see https://stackoverflow.com/questions/4723213/detect-http-or-https-then-force-https-in-javascript . Place JavaScript in between script tags or add it to an existing JavaScript file available on your website. To use external javascript, modify the following and place it in your HTML:
    Code:
    You Must Register to View Code
    Remember to create and fill the file you placed.
     
  7. Tim

    Tim Uh, can I express my real opinions here?
    EMERALD DIAMOND

    Posts:
    395
    Ratings:
    +240
    That’s exactly what I said.
     
  8. Quarterly

    Quarterly Well-Known Trader
    Thread Starter

    Minecraft Accounts: Quarterly
    Posts:
    116
    Ratings:
    +8

    Thanks to both of you. Sorry for late reply.
    [ Double Post Merged - ( New Post Date: Jun 16, 2018 ) - ( Original Post Date: Jun 16, 2018 ) ]
    Thanks.
     
  9. Fumbe

    Fumbe Well-Known Trader
    BANNED EMERALD DIAMOND

    Minecraft Accounts: p0kemon SkyWarsDad
    Posts:
    199
    Ratings:
    +71
    You are welcome sir
    Banned Reason: Scamming User #3159 (Dawson) - Dispute #23499 Ban Ends: Never
     
  10. Quarterly

    Quarterly Well-Known Trader
    Thread Starter

    Minecraft Accounts: Quarterly
    Posts:
    116
    Ratings:
    +8
    Yeppers, Works like a charm :D
     
  11. OfficialMCAlts

    OfficialMCAlts Dedicated Trader
    BUSINESS

    Posts:
    20
    Ratings:
    +4

    Sorry for the delayed response, but the ssl doesn't automatically register on the :8083 or the /webmail