.htaccess - How to force http post wildcard redirects -


i have large number of pages force http instead of https code have is:

rewriteengine on  rewritecond %{https} =on  rewriterule ^$ http://mydomain.com [r=301,l] 

how add wildcard redirect this? maybe

rewriterule ^$ http://mydomain.com/category/* [r=301,l] 

it's on wordpress site if makes difference?

cheers

rewriteengine on rewritecond %{https} =on rewriterule (.*) http://%{http_host}/$1 [r=301,l,qsa] 

this redirect https://hostname/* http://hostname/*


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -