Apache2 redirect all but some pages back to http using vhosts -
I use some types of pages to redirect the HTTPS to the vhosts to rewrite the rules with Apache 2 I am using It is anything that starts with What happens now when a user goes to the I need the terms and conditions to rewrite anything that In that other words, please help me fill in the blank: researching this , I am trying a few things that I avoid. I need a wildcard under I understand that Matching a knot with regular expressions is not easy. What I am trying to do is the bulk of the site running on HTTP except the In addition, yes, I have a valid proof and yes I have verified that Apache 2 rewrite mode works. I can rewrite all the url no problem at http. How can I not rewrite people starting with There are a lot of answers to this type of question - you have to search this site a little, yes, they do not answer 100% of your question directly (as all have different requirements - such as separate page names etc), but The whole perspective is the same. In any case here - how can this be done: The other rules given below include any of the virtualhost instructions Other writing rules should be placed before (if present). if placed elsewhere may require some small tweaking. They mydomain.com/users In other words, all pages to be done with users and their information should be on HTTPS. I want to redirect all other pages to http.
/ user page, then they are redirected to HTTPS properly. But when he goes away from the
/ user> area, I can not get back to the redirected HTTP
Rewind Conduit% {SERVER_PORT} ^ $ 443 Rewrite code% {REQUEST_URI} __blank__RewriteRule __blank__ http: //mydomain.com% {REQUEST_URI} [R = 301, L]
/ user because I'm developing the app and often add pages to users (this is a Rail app)
/ user / * pages on HTTPS.
/ user in REQUEST_URI? I think I've tried about every answer on this site so far ...
option + follow link - multimedia revive on rewritebase / # images / css / js (somehow Do not do anything for the protocol). (Gif | jp? G / png | css | js) $ - [NC, L] RSR / RUR write code for # users / *% {HTTPS} = REERRRR ^ / users / https: //% {HTTP_HOST}% {REQUEST_URI } = R = 301, L] # For all other URLs Force #Reverectcode% {HTTPS} =% {REQUEST_URI} on the Rewind Conduction! ^ / Users / RewriteRule * Http: //% {HTTP_HOST}% {REQUEST_URI} [R = 301, L] #
/ user / ,
Comments
Post a Comment