Luey
asked on
mod rewrite / php question
I am using mod rewrite to force all SSL on all my pages. My question is I have some php that I do not know the proper ways to handle the url now. It works the way it is I just did not know if that is correct.
Do I leave this as http or do I change it to https
This is the mod rewrite I am using to force the SSL.
Do I leave this as http or do I change it to https
$logo_info = getimagesize("http://www.prizemagnet.com".$logo);
This is the mod rewrite I am using to force the SSL.
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://example.com/$1 [R=301,L]
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Actually Gary is right, I was still thinking it was in the browser. But you are still better off if you can access it as a local file.
Open in new window