New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

SSL depends on Wenserver?

Started by yeknafar, July 23, 2018, 04:07:25 PM

Previous topic - Next topic

yeknafar

Hello

Thanks for your attention

When we change our webserver we have to change the SSL settings?

I want to have SSL on Wordpress. It's OK with Apache but when I install Apache+Nginx+Varnish it does not work correctly.





I love CWP

bullten

What error you get. I tried to replicate the same thing on one of the server but cant find any issue.

yeknafar

Thanks for your answer

The main problem is force SSL./

I wanted to use this manual:

https://www.wpbeginner.com/wp-tutorials/how-to-add-ssl-and-https-in-

wordpress/


I did not get any result and after adding the codes that he mentioned to the

.httaccess the site does not work but when I vhange the http to https in

"option" part of the database without using any code it behaves differently

on each subdomain.

On one subdomain http forces to https and on the other subdomain it doesnot

happen at the same situation and and setting.

Take a look at these subdomains please:

http://blog.salamzaban.com

http://level.salamzaban.com


Level subdomain goes to https but blog subdomain doesnot go to https automaticly.

Thanks
I love CWP

yeknafar

Thanks for your attention and answer.
Just now I did it.

The problem was the code that I used for htaccess .


I use this now:

# BEGIN WordPress
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{SERVER_PORT} !^443$
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
</IfModule>
# END WordPress
I love CWP