Welcome to TalkGraphics.com
Results 1 to 4 of 4
  1. #1

    Default redirect http to https

    Hi, my website hosting company offers Comodo free SSL. Question: how do I redirect my http website to the already excisting https version. Is there a codesnippet to put in Utilities>WebProperties>HtmlCodeHead? Or how does this work? https://www.tilitalte.fi/. When you search for this company, the http version appears but not redirected to the https. Customers usually searches by name or www + name. They never put in the https:// before www + name. As Chrome starts to flag out also non commercial websites this would be necessery to implement a s a p. Thank you!

  2. #2
    Join Date
    Jun 2017
    Posts
    5

    Default Re: redirect http to https

    It would be necessary to know your providers web configuration - can you create a redirect using a htaccess file?

  3. #3
    Join Date
    Jul 2016
    Location
    Florida, USA
    Posts
    105

    Default Re: redirect http to https

    Hi,

    This worked for me when I added SSL. This is for windows server, not linux.

    saved it as "web.config" add uploaded to websites root directory.

    <configuration>
    <system.webServer>
    <rewrite>
    <rules>
    <rule name="HTTP to HTTPS redirect" stopProcessing="true">
    <match url="(.*)" />
    <conditions>
    <add input="{HTTPS}" pattern="off" ignoreCase="true" />
    </conditions>
    <action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}/{R:1}" />
    </rule>
    </rules>
    </rewrite>
    </system.webServer>
    </configuration>

  4. #4

    Default Re: redirect http to https

    OK, thanks for helping. Made 3 different steps to get everything to work.

    1. .htaccess file in the root folder
    "RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://www.vaasa-artists.fi/$1 [R,L]"

    2. Canonical code in HTML head codebox
    <link rel="canonical" href="https://www.yoursite.co.uk/pagename.html"; />
    Where the www.yoursite.co.uk is your preferred url and as per your sitemap file and pagename.html is the
    name of each page. See attachment.

    Click image for larger version. 

Name:	canonical.JPG 
Views:	115 
Size:	72.1 KB 
ID:	118198

    3. Then made a sitemap in Xara and as I already had the pages in both http and https I just added the s to get the sitemap referring to https version.

    4. Made Google make a new search cause the pges address changed.

    Seems to work fine and donīt know if all steps necessary but got all this info through Mobirise forum. i hope this helps because Google is rumoured to start flagging not only webshops as not secure in near future. Donīt know about though.

 

 

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
  •