I am using relative paths for my URL's, so
<a href="somefile.php">somefile</a>
My domain can be access by
http://mydomain.com
http://www.mydomain.com
https://mydomain.com
https://www.mydomain.com
So without always specifying the entire URL, how can I make a link HTTPS and other links regular HTTP?
In other words if im on an HTTPS page, I do not want my relative path links to also be HTTPS (id rather it only be the registration page). On top of that, if I include the entire URL then it may send the user to the www version or virse-versa <- and if I changed the domain name it would be a nightmare)
So I guess what im asking is how can I make a page HTTPS without specifying the entire URL?


Reply With Quote


Bookmarks