htaccess

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

Force to a Holding Page

Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REQUEST_URI} !/holding_page.php$
 
RewriteRule $ /holding_page.php [R=307,L]

Re-Write to www.

RewriteEngine on

RewriteCond %{HTTP_HOST} !^www.glassfenceco.com.au$

RewriteRule ^(.*)$ http://www.glassfenceco.com.au/$1 [R=301]

 

Force https and no www

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)(.+) [OR]
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^(www\.)?(.+)
RewriteRule ^ https://%2%{REQUEST_URI} [R=301,L]

Download Force https and no www

 

no www

RewriteEngine on
RewriteCond %{HTTP_HOST} !^domain.com.au$
RewriteRule ^(.*)$ http://domain.com.au/$1 [R=301]

 

rewrite to index.php

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]

RewriteRule ^(.*) index.php Options -Indexes

Force WordPress® to https://

# 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]
RewriteCond %{HTTP_HOST} ^(www\.)(.+) [OR]
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^(www\.)?(.+)
RewriteRule ^ https://%2%{REQUEST_URI} [R=301,L]
</IfModule>
# END WordPress

Download word-press-force-https.htaccess