We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 51020
    • 670 Posts
    Hi there,

    I have just bought my first https certificate, so want to work out a process of migrating sites.
    it's all installed and verified on the server, but when I try to view the site using https://www.domain.com I get warnings that not all items are secure. This is due to URLs for images, CSS files etc, are relative to the base url which is still http://www.domain.com.

    So first off - how do i force the base url to include https?

    Secondly, I assume I need to do something in my .htaccess file for forward all visitors from http://domain.com and http://www.domain.com to https://www.domain.com?

    Thirdly - do I need to do anything from an SEO perspective? ie, all my pages indexed will be without https?

    Thanks in advance for any advice!
    ANdy

    This question has been answered by tm2000. See the first response.

    • discuss.answer
      • 51020
      • 670 Posts
      UPDATE:

      I found this system setting Server type which i changed to https - sorted the display issues.

      I also found this in my htaccess file which seems to redirect users to https:

      <IfModule mod_rewrite.c>
      RewriteCond %{SERVER_PORT} !^443
      RewriteRule ^ https://www.domain.co.uk%{REQUEST_URI} [R=301,L]
      </IfModule>


      - so mostly sorted - But do I need to do anything form an SEO perspective?
        • 36926
        • 701 Posts
        Quote from: tm2000 at Jun 15, 2017, 07:51 AM
        UPDATE:

        <ifmodule mod_rewrite.c="">
        RewriteCond %{SERVER_PORT} !^443
        RewriteRule ^ https://www.domain.co.uk%{REQUEST_URI} [R=301,L]
        </ifmodule>
        - so mostly sorted - But do I need to do anything form an SEO perspective?

        All your pages will be indexed without the https, but with that 301 redirect it will tell Google that this has now moved Permanently and it'll then index the https version. So it just a case of waiting for google to re index.
          • 51020
          • 670 Posts
          Quote from: bennyb at Jun 15, 2017, 10:58 AM
          Quote from: tm2000 at Jun 15, 2017, 07:51 AM
          UPDATE:

          <ifmodule mod_rewrite.c="">
          RewriteCond %{SERVER_PORT} !^443
          RewriteRule ^ https://www.domain.co.uk%{REQUEST_URI} [R=301,L]
          </ifmodule>
          - so mostly sorted - But do I need to do anything form an SEO perspective?

          All your pages will be indexed without the https, but with that 301 redirect it will tell Google that this has now moved Permanently and it'll then index the https version. So it just a case of waiting for google to re index.

          Great - so I sorted my own problem in the end! thanks for the confirmation!