RewriteEngine On #none of this seemed to work right or at all: #RewriteCond %{HTTPS} on #RewriteCond %{HTTP_HOST} ^(www\.)?alexandria-project\.com [NC] #RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} $1 [R=301,NC,L] #RewriteRule ^(.*)$ https://(www\.)?alexandria-project\.com http://%{HTTP_HOST}%{REQUEST_URI} $1 [R=301,NC,L] ##this section works for always redirect to ssl: RewriteCond %{SERVER_PORT} !^443$ RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] #RewriteCond %{HTTP_HOST} ^(.*)?global-dialog\.org [NC] #RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] RewriteBase / RewriteRule ^index\.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] ##what the softaculous installer put: #RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] #RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] ##what all the guides and tutorials say: RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . index.php [L]