My main e.g is www.site.com and my blog is installed on www.site.com/blog there's a .htaccess in my blog folder which has the following code :- # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /blog/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /blog/index.php [L] </IfModule> # END WordPress The above code is for permalink like www.site.com/blog/postname My main site has the following :- ErrorDocument 404 http://www.site.com ErrorDocument 500 http://www.site.us RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(blog/wp-admin/.*)$ https://site.com/$1 [R=301,L] After i setup the permalink in wordpress and the .htaccess created in the /blog folder then the http to https redirection of wp-admin stopped working, kindly help me. If I remove the wordpress .htacess it works fine.