PDA

View Full Version : Changing to https


whitedragon101
07-05-2010, 01:18 AM
I want to change my website to be SSL secured. I have had a word with my hosting company and the conclusion was:

ME :so all I do is buy the pro package (includes SSL certificate) and change the webpage links to https and then its SSL secure?
THEM: Yes


1) Is this true, its that simple?
2) If so, I have my page links set up as "links relative to document" (Dreamweaver CS4). How do I change them to be https without writing in a full URL for each one?
3)Once I change the links to https whats to stop someone simply deleting the 'S' from the url and making it http again?

Corrosive
07-05-2010, 07:00 AM
1) Is this true, its that simple?

Should be. My hosts go off and install SSL for me whenever I need it and it works with https.


2) If so, I have my page links set up as "links relative to document" (Dreamweaver CS4). How do I change them to be https without writing in a full URL for each one?

If your links are relative to document then they should work ok. If not look at some options, base URL with PHP or htaccess might be good things to Google. Don't forget you'll have to change your image and other file links to https as well or they will show up as unsecure items on your page. That is not a good warning message to have on a secure page when customers see it!

3)Once I change the links to https whats to stop someone simply deleting the 'S' from the url and making it http again?

There is nothing stopping them from changing the address apart from they want to be secure. Personally I just try and target the specific pages where customer info is passed over the net. For example if someone is just browsing a store then they would get http. As soon as they are registering or making a purchase they will get https. Also don't forget that you will have to choose a domain type. Either with or without the 'www.'

Hope that helps.

whitedragon101
07-05-2010, 10:55 AM
If your links are relative to document then they should work ok.



If my links are relative to document the link appears as.

../../another_page.php

How to I indicate I want that to be https when it doesn't include the http://www.mysite.com/myfolder/ portion of the address?

Corrosive
07-05-2010, 11:57 AM
htaccess is the way to go I believe; http://www.besthostratings.com/articles/force-ssl-htaccess.html

whitedragon101
07-05-2010, 12:17 PM
If I just drop in that code does this take care of changing image and file links (css, javascript etc) as well?

Corrosive
07-05-2010, 12:22 PM
I'm not entirely sure to be honest. I've only used SSL with e-commerce packages where this is handled for you. I've never tried it on something I've personally built from the ground up. All you can do is try it out and revise it as you need to.

Bit of a learning curve I'd imagine but I'm sure you'll get there.