0

I have bought https for my website. my website images showing with http://.... so when I use https in browser, it is not showing. so I want to change it in htaccess to detect that both. No need force http or https. need to work both as well according to users request

user3619039
  • 47
  • 1
  • 8
  • Possible duplicate of [htaccess redirect to https://www](https://stackoverflow.com/questions/13977851/htaccess-redirect-to-https-www) – capcj May 23 '17 at 15:01
  • No, I no need to OFF https. I want to use both – user3619039 May 23 '17 at 15:12
  • 1
    Why you put https on your server and allow http requests? Nonsense – capcj May 23 '17 at 15:16
  • I only want to set https to some of special pages in my site. that's the problem I want to work both – user3619039 May 23 '17 at 15:19
  • Modern browsers don't allow non-secure calls (http) on secure connections (https). So this will be a problem regardless of your .htaccess setup. – ekampp May 23 '17 at 19:16
  • When you use relative paths for your images in HTML, the client will access the images appropriately, e.g. `http` if the page is accessed via `http`, and `https` if the page is accessed via `https`. No need for any .htaccess rules. – Olaf Dietsche May 23 '17 at 21:46

0 Answers0