Announcement

Collapse
No announcement yet.

SSL Problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    SSL Problem

    Hi all

    Apparently my ssl is not working on all versions of my domain, I have been in contact with domain hosts and they suggest the following

    Hi Chris

    To access the file you will need to navigate to /var/www/vhosts/internet-workwear.co.uk/httpdocs/.htaccess via ssh

    To force a specific domain to use HTTPS, use the following lines of code in the .htaccess file ir:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^example\.com [NC]
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]

    Make sure to replace example\.com with the domain name you're trying force to https. Additionally, you need to replace
    www.example.com with your actual domain name.

    Warmest regards

    This is all gobblde gook to me as no idear on how to start, can anyone explain better please
    Chris Ashdown

    #2
    In the case of British Nurses say then the .htaccess file lines will be:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^british-nurses\.co.uk [NC]
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://www.british-nurses.co.uk/$1 [R,L]

    To access the .htaccess file itself you will need to manually FTP to the root of your site and add these lines to the top of the file. You can download the file and then make the changes in notepad then save and upload to replace the existing file. If the file does not exist then you can make one using notepad and saving it as .htaccess.

    Hope that helps and hasn't muddied the water more.

    Comment


      #3
      Hi Duncan

      I cannot see existing .htaccess and when i try to upload on it stated permissions required

      Any suggestions
      Chris Ashdown

      Comment


        #4
        Ok found the tricky little thing
        Chris Ashdown

        Comment

        Working...
        X