Hello everyone, Few days back i redirected my 1 Https domain to another new Https one for example
https://example.com to https://bmerk.com, The domain http://example.com was redirecting fine without the SSL https but when i would browse the old domain on https:// i wasnt redirecting to the new one, Can anyone help me out how this works? I am on Ubuntu using VestapCP.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello, @Zulqarnainkhan
At the moment you do not have a http to https redirection for your domain, meaning it will redirect only the https version to the other domain name.
In order to force your site to always load with https you can use the following rule in the .htaccess file:
#Force SSL
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
Another rule you can use to redirect all the traffic from https://example.com to https://bmerk.com is using a rule like this one in your .htaccess file:
Redirect 301 / https://bmerk.com
Hope this helps
Regards, Alex
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.