Hey There,
I have a website “eladiestailor .com” that I purchased recently. I installed SSL certificate but when I am opening internal page without “HTTPS” then it is not redirecting correctly which means showing two different pages one with “http” and other one with “https”. Please lead me and resolve my problem.
Here is the example!
https:// eladiestailor com/2019/09/25/hello-world/
http ://eladiestailor com/2019/09/25/hello-world/
d2d4j
October 1, 2019, 5:21am
2
Hi Morinmote1
You need to add the following code to your vhost file for domain or into .htaccess file
Many thanks
John
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
I already put that code but still have same error. Do i need to reinstall wordpress and SSL?
d2d4j
October 2, 2019, 10:26am
4
Hi morinmote1
Did you restart apache once you added it to the vhost file for that siteworx account
As it?s a wordpress site, you can set https from within Wordpress admin, settings I think
If using .htaccess, you may need to change slightly the code I posted so htaccess redirects
All I can let you know, the code works lovely on all our servers
If changing vhost_siteworx.url.conf file - where are you inserting the code
Many thanks
John
d2d4j
October 2, 2019, 10:30am
5
Hi
Sorry I just checked your url link for http and it redirected to https…
Many thanks
John
d2d4j:
Hi morinmote1
Did you restart apache once you added it to the vhost file for that siteworx account
As it?s a wordpress site, you can set https from within Wordpress admin, settings I think
If using .htaccess, you may need to use spy app https://bestparentalcontrolapps.com/highster-mobile/ change slightly the code I posted so htaccess redirects
All I can let you know, the code works lovely on all our servers
If changing vhost_siteworx.url.conf file - where are you inserting the code
Many thanks
John
Thanks for your reply John! It helped me