Still can’t access my .htaccess file

I have followed the tips regarding finding your

In order to force visitors to the secure version of your site, you’ll need to do edit your .htacces file in RapidWeaver. My problem is I can’t find that file. I have googled the heck out of it but it doesn’t seem to to exist so I can use the code below. I’m trying to force RapidWeaver to use only https.

RewriteEngine On

RewriteCond %{HTTPS} off [OR]

RewriteCond %{HTTP:X-Forwarded-Proto} !https

Edit the line below! You’ll need to replace www.example.com with YOUR domain

RewriteRule ^(.*)$ https://www.oldcoffeeroaster.com/$1 [R=301,L]

Hi @richjh The htaccess file must be created, however you must check that one does not already exist at the root of your site, it is a file starting with a point which means that it is hidden, you must make it visible.
If you have never handled htaccess files you must first document yourself on this because otherwise your site risks being quickly dysfunctional. There are many tutorials on Youtube and online documentation, including [here] Good luck :+1: (Apache HTTP Server Tutorial: .htaccess files - Apache HTTP Server Version 2.4)

1 Like

I have already made it so that hidden files are shown and see all the “.” files and still can’t find it. Suggestions on making it? I’m quite new at doing sonething like this.

You can create a file with a file transfer software like Filezilla at the root of your website or use the functionality integrated into Rapidweaver to edit the htaccess. Since you have not yet discussed htaccess, I insist a lot on the phase of taking information on its operation and its structure, often copy-pasting causes the site to no longer work, it is then enough to delete the htaccess of course. You must understand that it is not rapidweaver that you force to use HTTPS but your server which no longer accepts other types of connection. This is why if your webhost offers it you should in the configuration of your hosting indicate in the security panel HTTPS Only, this is preferable when possible.

Alternatively, you can just click this button in the Publishing Settings window to modify your existing .htaccess file, or create one if one doesn’t exist:

Cheers,
Erwin