Welcome to TalkGraphics.com
Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1

    Default .htaccess issue?

    Hi all,
    I'm struggling with what I think is an htaccess issue.
    I've been going around in circles with 1and1 who I pay for my server 'space' for my website and CDN and an SSL.
    My website seems to load ok on chrome and comes up with a nice wee 'lock' icon. Everything seems to load ok.
    It isn't loading well on safari and comes up with a 'not secure' message and not all the pictures load.

    I'm struggling with what to do here.

    For reference;
    In the past I've been on a bit of a 'loop' with 1and1. I thought I was paying for SSL and a CDN so that when you typed in www.historicedinburghtours.co.uk, hey presto - safe and fast! Seems like there's a difference between historicedinburghtours.co.uk and www.historicedinburghtours.co.uk and I have no idea what to do. I think this has been a problem in the past (something to do with redirects?) and it may be an issue now.

    All I want is for people to be able to type in www.historicedinburghtours.co.uk and it's faster (due to the CDN) and safe (due to the SSL). I'm not fussed about them just typing in historicedinburghtours.co.uk, but if that would work too then even better.

    I don't understand htaccess files but would really appreciate someone helping with what I do or who I speak to to get this sorted.

    Hope you're all well and safe out there.
    Thank you in advance.

  2. #2
    Join Date
    Apr 2018
    Location
    Barnes, London
    Posts
    947

    Default Re: .htaccess issue?

    You are welcome to try my 1and1 (INIOS) .htaccess settings for SSL (I am assuming you have an SSL direct from INIOS).

    PART 1

    Login to your INIOS account, go to Webspace and locate the .htaccess file:

    Click image for larger version. 

Name:	1and1 Web Space.jpg 
Views:	77 
Size:	52.0 KB 
ID:	126707

    With care! open the .htaccess file, add the redirect code (lines 1,2 & 3) and place a #sign in front of the existing code (the # sign in PHP means the code that follows on that line is ignored, but not lost!)

    HTML Code:
    RewriteEngine On 
    RewriteCond %{SERVER_PORT} 80 
    RewriteRule ^(.*)$ https://initiostar.co.uk/$1 [R,L]
    
    
    #<IfModule mod_rewrite.c>
    #   RewriteEngine On
    #   RewriteBase /
    #   RewriteCond %{SERVER_PORT} 80
    #	RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,L]
    #   RewriteRule ^index\.php$ - [L]
    #   RewriteCond %{REQUEST_FILENAME} !-f
    #   RewriteCond %{REQUEST_FILENAME} !-d
    #   RewriteRule . /index.php [L]
    #</IfModule>

    Seems like there's a difference between historicedinburghtours.co.uk and www.historicedinburghtours.co.uk and I have no idea what to do. I think this has been a problem in the past (something to do with redirects?) and it may be an issue now.

    PART 1
    should fix your problem, but it takes time for Google to catch up; thereafter it does not matter whether you search for www.mydomainname or https://mydomainname. Where you have more than one domain make sure you repeat the process for each.

    BUT

    It takes time also for CDN to pick up the changes, sometimes hours, sometimes a day or more, but clear your own browser cache too - Ctrl F5

    PART 2

    If you continue to see a difference between "www" and "https" you should clear the CDN Cache: This is explained here: https://www.bryan-myers.com/articles...eveloper-Mode/

    Hopefully, this sets you on the correct path. It works for my main domain https://initiostar.co.uk

    Gary

  3. #3

    Default Re: .htaccess issue?

    Brilliant thank you!
    There's currently nothing in my htaccess file - someone I know suggested just removing everything in it - this helped get the website up and running on safari, but obviously still has a few issues surrounding it. If I just put in the code you suggested (and that's all there will be on the file), will that work?
    Many thanks again

  4. #4
    Join Date
    Apr 2018
    Location
    Barnes, London
    Posts
    947

    Default Re: .htaccess issue?

    Quote Originally Posted by forresthowie View Post
    Brilliant thank you!
    There's currently nothing in my htaccess file - someone I know suggested just removing everything in it - this helped get the website up and running on safari, but obviously still has a few issues surrounding it. If I just put in the code you suggested (and that's all there will be on the file), will that work?
    Many thanks again
    SSL requires the .htaccess folder to be in the domain directory as shown in the INIOS panel. With INIOS, this is all that should be required. Best to test it and report back if you have an issue. Assume you are using the latest version of Safari?

  5. #5
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,895

    Default Re: .htaccess issue?

    I've looked at your site using several different browsers and several variants of you url. All come up with Not Secure warnings. I don't use 1 & 1 so can't comment on Gary's input.

    But perhaps it's not a .htaccess issue. I've had issues like this in the past. It could be your website is linking to some content not on your server which is not on a secure server and perhaps is the cause of the Not Secure warning. Just worth checking.
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  6. #6

    Default Re: .htaccess issue?

    Hi there everyone,
    Thank you for your help. I called 1and1. The line was bad. The accent was strong. My dog was barking (you get the idea...) Their whizzo chap seemed to have sorted it out however.

    I can't lend much help back to the group in terms of what happened as I didn't hear or understand much. I think there was an issue with HTACCESS (and thanks gary, i did try some of your suggestions and was going to do more if 1and1 hadn't sorted it). My CDN seems to have been running in tandem with another package of theirs (also a CDN).

    What's still confusing me is why my site homepage appears to work fine in all browsers, as the mobile variant, apart from Safari which doesn't load/display the photos correctly.

  7. #7
    Join Date
    Apr 2018
    Location
    Barnes, London
    Posts
    947

    Default Re: .htaccess issue?

    Quote Originally Posted by forresthowie View Post
    Hi there everyone,
    Thank you for your help. I called 1and1. The line was bad. The accent was strong. My dog was barking (you get the idea...) Their whizzo chap seemed to have sorted it out however.

    I can't lend much help back to the group in terms of what happened as I didn't hear or understand much. I think there was an issue with HTACCESS (and thanks gary, i did try some of your suggestions and was going to do more if 1and1 hadn't sorted it). My CDN seems to have been running in tandem with another package of theirs (also a CDN).

    What's still confusing me is why my site homepage appears to work fine in all browsers, as the mobile variant, apart from Safari which doesn't load/display the photos correctly.
    IONOS have repaired your .htaccess file; your site is now using the SSL certificate; https://historicedinburghtours.co.uk and https://www.historicedinburghtours.co.uk both show the current website.

    To isolate the Safari problem: maybe create a small XARA doc, copy and paste the offending photos that do not display correctly in Safari and let TG have a look at it; confirm whether the problem exists in both variants or just one of them.

  8. #8

    Default Re: .htaccess issue?

    Quote Originally Posted by Initiostar View Post
    IONOS have repaired your .htaccess file; your site is now using the SSL certificate; https://historicedinburghtours.co.uk and https://www.historicedinburghtours.co.uk both show the current website.

    To isolate the Safari problem: maybe create a small XARA doc, copy and paste the offending photos that do not display correctly in Safari and let TG have a look at it; confirm whether the problem exists in both variants or just one of them.
    Thank you - I'll try that. Thank you also for all your help and advice with this issue, it was greatly appreciated.
    Yours,
    Robert

  9. #9
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,895

    Default Re: .htaccess issue?

    What's still confusing me is why my site homepage appears to work fine in all browsers, as the mobile variant, apart from Safari which doesn't load/display the photos correctly.
    Works fine on my mobile in Safari
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  10. #10

    Default Re: .htaccess issue?

    Quote Originally Posted by Egg Bramhill View Post
    Works fine on my mobile in Safari
    Woohoo! Thanks!

 

 

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
  •