Don't slap me for this first comment of my questions, but.....I have my hosting with godaddy for www.waikoloavacationrentals.com. I just purchased SSL hosting for it so that I could secure anything in the folder /reservations. How do I go about making all of that secure only? Godaddy said I would have to use redirects, but I really don't want to do that. Any help would be appreciated.
Steven,
I hate to say it, but it is pretty ridiculous when I can get a better answer here than at godaddy. So would this be correct.
1) I put a htaccess file in my /reservations folder.
2) Then I put the following code:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} reservations
RewriteRule ^(.*)$ https://www.waikoloavacationrentals.com/reservations [R,L]I am not sure about the port and I am not sure what that $1 represented at the end of the rewrite rule.
I just need everything within the reservations folder secure.
Thanks,
No, you put the htaccess file in your web root, not in the reservations folder.
Everything else looks right!
Steven,
Since I was trying to do it just for the reservation folder I think it did need to be in the /reservations folder. I tried it in the other and had problems so I made a htaccess file for the /reservations folder and I think it worked. You can check it out by clicking on the book online at the bottom of www.waikoloavacationrentals.com/mauna-lani-terrace-a204.html
The only problem is that if you are using internet explorer it will ask you if you want to allow only the information delivered securely and if you click yes it will not bring in the header, background, etc.
How do I fix that?
Thanks!
Last edited by waikoloavrm; February 17 '10 at 11:34 PM.
You should instead use a relative URL (e.g. /images/myimage.jpg) for everything so that the HTTP Scheme is not a part of that path.
This will prevent issues with non-secure items not being rendered, and will eliminate the IE warning (Firefox just places a warning icon at the bottom of the window).
I think this is the line of code I need to try to figure out what to change in
if(isset( $property_details['arrPicList']['clsPictureInfo']['strURL']))
echo("<img class='stream_image' src='" . $property_details ['arrPicList']['clsPictureInfo']['strURL'] ."' width='250px' height='190px' style='cursor:hand' onclick=showMoreInfo('". $moreinfo_link."')>");
else
echo("<img class='stream_image' src='propertyimage/Picture-Not-Available.gif' width='250px' height='190px' >");