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!
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
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]
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.
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.
Sorry for the delayed response, but the ssl doesn't automatically register on the :8083 or the /webmail