.htaccess - Redirect only one folder to HTTPS, all others to HTTP -
i apologize in advance asking that's been answered several times on so, haven't been able modify of answers work case.
i have /secure/ folder need redirect https. outside of folder should redirected http.
i plan on using absolute links navigation through site, need guarantee pages in /secure/ folder viewable on https. other pages doesn't matter, i'd prefer them viewable on http because i'm on shared hosting , server slow is.
thank much!
adapted example on page this page. see if following works you.
rewriteengine on rewritecond %{server_port} 80 rewritecond %{request_uri} secure rewriterule ^(.*)$ https://www.example.com/secure/$1 [r,l]
Comments
Post a Comment