wordpress - htaccess http-to-https redirect not affecting root -
this one's been bugging me while now. we're trying redirect http://
https://
, ourdomain.co.uk
www.ourdomain.co.uk
.
both https
, www
redirects work every page. but https
not applied when accessing root url, http://www.ourdomain.co.uk
.
http://ourdomain.co.uk
gets redirected https://...
without problems.
what causing this? i'm .htaccess
n00b, we're using matches suggestions i've found searching problem...
this start of our .htaccess
:
# fix wordpress menu limit <ifmodule mod_php5.c> php_value max_input_vars 6000 </ifmodule> # begin wordpress <ifmodule mod_rewrite.c> rewriteengine on # force https rewritecond %{https} !=on rewriterule ^ https://%{http_host}%{request_uri} [l,r=301] # force www. rewritecond %{http_host} !^www\. rewriterule .* https://www.%{http_host}%{request_uri} [l,r=301] # force traing slash rewritecond %{request_filename} !-f rewriterule ^(.*[^/])$ /$1/ [l,r=301] rewritebase / rewriterule ^index\.php$ - [l] ### more page-by-page redirects go here ###
Thanks for give us valuable information
ReplyDeleteWordPress Support
WP Support
This comment has been removed by the author.
ReplyDeleteVery Helpful. Thanks for such Information
ReplyDelete24x7 WP Support
WP Tech Support