.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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -