mod rewrite - redirect to https folder in .htaccess -


I was trying to get the complete directory / section of my website so that I could redirect https safely Can I Htaccess file, so I found a solution here. It has been learned that except for the homepage, it redirects my entire site to HTTPS again. I just have to redirect / php / folder and anything inside it.

Thanks in advance for any help!

Here my code is .htaccess:

  rewrite %% {SERVER_PORT} 80 rewrite angle% {REQUEST_URI} PHP rewritable ^ (. *) $$ Https: // beanstalkwebsolutions .com / $ 1 [R, L]    

You use this rule to rule your first As can:

  rewrite% {HTTPS} of revised rule ^ PHP (/ | $) https: //beanstalkwebsolutions.com% {REQUEST_URI} [NC, R, L]    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -