• Hi all.
    I read in the web that adding the ssl dv certificate it should be important (or necessary?) to change the .htaccess
    from old http code:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    to something like this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    </IfModule>
    # END WordPress

    In my case it did not work, and creates an internal server error,
    so I left WP to create .htaccess by itself: it creates again the old code
    (as first case above).
    And if I try to add some lines like:

    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    The result is that it stops to work.
    What’s wrong in the code? Should I leave the old one even if https?

    Thank you very much.

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘.htaccess for https’ is closed to new replies.