• Does anyone know the best way to have working permalinks, while forcing non www and forcing https? It seems my htaccess skills are in question (or my host).

Viewing 1 replies (of 1 total)
  • Thread Starter Socially Uncensored

    (@socially-uncensored)

    SOLUTION: You’ll need to change the url to fit your needs ??

    # Secure SSL (HTTPS)

    RewriteCond %{HTTPS} !=on
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    # Force Non WWW

    RewriteCond %{HTTP_HOST} !^sociallyuncensored\.net$ [NC]
    RewriteRule ^ https://sociallyuncensored.net%{REQUEST_URI} [L,R=301]

    # 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

Viewing 1 replies (of 1 total)
  • The topic ‘Force non www and force https with wordpress friendly urls’ is closed to new replies.