• drewehart

    (@atlantislabs)


    I want to force www and https. First, I know there are about a 1,000 posts on this and I think I have seen most of them. Second I consider this an installation problem as my site isn’t doing what I want. drewhart.net, if you enter drewhart.net, http://www.drewhart.net, or http://www.drewhart.net, then yes, it works, it redirects to the secure https://www.drewhart.net. However, if you type in anything other than the index page, say http://www.drewhart.net/sample-page, it does not force SSL. I have the links in my general settings set as https://www.drewhart.net, and I have changed the permalinks so WP did write the following to my .htaccess file:

    # 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

    And it works perfectly if you always start at the index page. But I would like it to work no matter what page you land on, so if you go directly to http://www.drewhart.net/sample-page, it enforces the SSL, which it currently does not, nor do the other posts I have looked at here. Many thanks in advance,

    Drew

  • The topic ‘SSL and www mod_rewrite .htaccess’ is closed to new replies.