SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Guru
    Join Date
    Aug 2004
    Location
    Taunton, UK
    Posts
    787
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Transferring a site from http to https

    A client at the last minute has asked if the site I have developed for them can be hosted on https instead of the current http. I have never used https for a site so have no idea what is involved or what the implications are.

    The site in question is hosted on a shared hosting linux server. The site is essentially just a one page site for uploading video files coded in PHP and using a MYSQL database to store data associated with the video files uploaded.

    So 2 questions really.

    Is it simply a case of asking the hosting company to transfer the site from http to https

    Will changing from http to https require any recoding of the site.

    Sorry if dumb questions but I really have no idea.

    Thanks

  2. #2
    SitePoint Wizard
    Join Date
    Oct 2005
    Posts
    1,771
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by chuckylefrek View Post
    A client at the last minute has asked if the site I have developed for them can be hosted on https instead of the current http. I have never used https for a site so have no idea what is involved or what the implications are.

    The site in question is hosted on a shared hosting linux server. The site is essentially just a one page site for uploading video files coded in PHP and using a MYSQL database to store data associated with the video files uploaded.

    So 2 questions really.

    Is it simply a case of asking the hosting company to transfer the site from http to https
    You are going to need a SSL certificate and an IP address if your hosting account doesn't already come with one. Contact your host to find out if your plan has this or if you will need to upgrade.

    Quote Originally Posted by chuckylefrek View Post
    Will changing from http to https require any recoding of the site.
    Not much. A simple htaccess redirect can force users to use the https protocol. Not hard to do if you are doing it for the entire site. Will require no recoding of your PHP.

    http://davidwalsh.name/force-secure-ssl-htaccess

    Quote Originally Posted by chuckylefrek View Post
    Sorry if dumb questions but I really have no idea.

    Thanks
    Not dumb at all. I don't know the particular features of the hosting plan you are on. You will have to make sure your account is set up for SSL. Your web hosting company will be able to answer that question.

  3. #3
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,605
    Mentioned
    19 Post(s)
    Tagged
    2 Thread(s)
    Chucky,

    Let me add to cd's answer ( ) in that I always add one more thing (to my PHP scripts which require SSL protection): A check of the $_SERVER['SERVER_PORT'] to ensure it's 443 else redirection to the https: version of the URL.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  4. #4
    SitePoint Guru
    Join Date
    Aug 2004
    Location
    Taunton, UK
    Posts
    787
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks cheesedude and David - really helpful and great to know that no recoding is required. I have checked with my hosting company and they can set up standard SSL for 50 per year and this includes a static IP address so good news on the cost front too.

    Many thanks for the help.
    Mediakitchen Limited
    App Development | Website Design & Development | Flash Game Development
    Somerset, UK
    http://www.mediakitchen.co.uk


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •