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

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -