When I´m in a secure part of a web-site I´m developing (entering a specific page or folder using https), the relative links to the normal pages are automatically converted to https as well.
Is there a way to tell an <a> tag to always use the http protocol instead of the https protocol (or the other way around)?
I know it´s easy using the complete link (http://www.mysite.com/index.html or https://www.mysite.com/index.html), but I would like it to work with relative links (index.html, ../index.html, etc.).
We use Apache mod_rewrite to control whether a page is served via http or https. Here’s an example snippet from a site’s root directory .htaccess file:
Read all about it at:
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html