Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Help for https

Discussion in 'Misc WordPress Requests' started by willy70, Dec 29, 2017.

  1. willy70


    Reply To: Help for https, by willy70

    Dear Steve dear all,
    I found this guide http://www.wpbeginner.com/wp-tutorials/how-to-add-ssl-and-https-in-wordpress/ and I followed it to configure my
    website that was already functioning without SSL.

    The first thing I did was install of letsencrypt
    using certbot-auto generating: private, the request and the
    certificate. This utility did not make any changes to
    the apache configuration because I did it myself.

    If you still have some time for me I would be grateful. These
    are some configuration files of the linux server running apache 2.2.

    … omissis
    ServerRoot “/ etc / httpd”
    Listen 80
    #ServerName http://www.example.com:80
    UseCanonicalName Off
    DocumentRoot “/ var / www / html”
    <Directory “/ var / www / html”>
    … omissis

    inside this file there are no references for wordpress.

    The file /etc/httpd/conf.d/ssl.conf is:

    LoadModule ssl_module modules / mod_ssl.so
    # When we also provide SSL we have to listen to the
    # the HTTPS port in addition.
    Listen 443
    <VirtualHost _default_: 443>
    # General setup for the virtual host, inherited from global configuration
    #DocumentRoot “/ var / www / html”
    #ServerName http://www.example.com:443
    SSLEngine on
    SSLCertificateFile /etc/letsencrypt/live/atleticaumbertide.it/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/atleticaumbertide.it/privkey.pem

    </ VirtualHost>

    And the configuration file /var/www/html/.htaccess in the wordpress directory:

    # BEGIN iThemes Security – Do not modify or remove this line
    # iThemes Security Config Details: 2
    # Quick ban IP. Will be updated on next formal rules save.
    SetEnvIF REMOTE_ADDR “^185\.13\.39\.246$” DenyAccess
    SetEnvIF X-FORWARDED-FOR “^185\.13\.39\.246$” DenyAccess
    SetEnvIF X-CLUSTER-CLIENT-IP “^185\.13\.39\.246$” DenyAccess
    <IfModule mod_authz_core.c>
    Require all granted
    Require not env DenyAccess
    Require not ip
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    And the last one wp-config.php:

    define(‘FORCE_SSL_ADMIN’, true);

    So if I replace “RewriteBase” standard rules from .htaccess adding the new

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://www.yoursite.com/$1 [R,L]

    web site will be not accesible.

    Any ideas ?
    Thanks a lot
    Best Regards

    Reply To: Help for https

Share This Page

Monarch Social Sharing Plugin