# File .hatchess editing

**URL:** <https://forums.realmacsoftware.com/t/file-hatchess-editing/43308>\
**Category:** RapidWeaver Classic\
**Tags:** publishing\
**Created:** [May 20, 2024, 9:49am UTC](https://forums.realmacsoftware.com/t/file-hatchess-editing/43308 "2024-05-20T09:49:49Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![emmeci47](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/emmeci47/32/5419_2.png) [@emmeci47](https://forums.realmacsoftware.com/u/emmeci47)\
**Post date:** [May 20, 2024, 9:49am UTC](https://forums.realmacsoftware.com/t/file-hatchess-editing/43308/1 "2024-05-20T09:49:49Z")

</div>

Hi everyone. My name is Anna and I’m writing from Italy. I have no computer skills and, for this reason, I use RW. In 15 years I have created various sites related to my hobbies and my work. This time I’m having trouble publishing it on SiteGround. It gives me a 404 error: it means there is a problem with the .hatcess files. My new site has a home page called “VETRINA” plus 12 other pages. When I start publishing it connects correctly to SiteGround but the .hatchess files window is empty and I don’t know what code to edit. Can someone help me?

---

<div class="post-metadata">

**Author:** ![differentdan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/differentdan/32/33530_2.png) [@differentdan](https://forums.realmacsoftware.com/u/differentdan)\
**Post date:** [May 20, 2024, 1:09pm UTC](https://forums.realmacsoftware.com/t/file-hatchess-editing/43308/2 "2024-05-20T13:09:32Z")

</div>

Hi @emmeci47,

Not sure I understand, are you trying to visit the .htaccess file in your web browser? That wouldn’t work, you can’t access it like .html or .php pages.

Can you clarify what you are trying to do with the .htaccess file? Did SiteGround tell you that you should enter some code there? Did you read online about some code you should enter there?

We would need more information in order to help.

---

<div class="post-metadata">

**Author:** ![emmeci47](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/emmeci47/32/5419_2.png) [@emmeci47](https://forums.realmacsoftware.com/u/emmeci47)\
**Post date:** [May 20, 2024, 3:56pm UTC](https://forums.realmacsoftware.com/t/file-hatchess-editing/43308/3 "2024-05-20T15:56:29Z")

</div>

Hi Dan.

When I try to publish my website [https://leoccasionidianna.it/](https://leoccasionidianna.it/) I’ve verified that there is no code in the window of the .hatcess file.

This is the reason why SiteGround says that without a correct .hatcess file it is impossible to publish my website and Google writes “Error 505 page not found".

I’ve controlled the .hatcess file in the managing files page of SiteGround: the icon is present but it is empty, without any code.

So SiteGroun wrote to me to enter this generic code, with no results:

`RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L]`

I think they work well with WordPress but they are absolutely not familiar with RW.

 ![Screenshot 2024-05-20 alle 17.10.29.png](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/f/2/f257cf25c0765a27454aa65528ab15f16e3ea9c9.jpeg)

Mind that on November 2023 I’ve published a previous version without this kind of problem and it is almost ten year I use RW to make five websites (having no programming skills: this is why RW is fantastic).

Unfortunately nothing from the previous site was saved, because it was outdated and needed to be completely redone, which is why I am unable to verify old .hatcess file and I’m asking for your help.

Kind regards,  
Anna.

PS. My website is .an e-commerce business without a cart. My customers can choose and purchase from a vast gallery of wool and cotton yarns, since I live in Biella, the city that is the Italian capital of wool.

---

<div class="post-metadata">

**Author:** ![differentdan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/differentdan/32/33530_2.png) [@differentdan](https://forums.realmacsoftware.com/u/differentdan)\
**Post date:** [May 20, 2024, 4:21pm UTC](https://forums.realmacsoftware.com/t/file-hatchess-editing/43308/4 "2024-05-20T16:21:29Z")

</div>

> [@emmeci47](#):
>
> So SiteGroun wrote to me to enter this generic code, with no results:
> 
> `RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L]`

That’s .htaccess code for WordPress, not RapidWeaver. 😂

I agree with what @Heroic_Nonsense said below, check your path because it’s usually not just /

⬇

---

<div class="post-metadata">

**Author:** ![Heroic\_Nonsense](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/heroic_nonsense/32/20666_2.png) [@Heroic\_Nonsense](https://forums.realmacsoftware.com/u/Heroic_Nonsense)\
**Post date:** [May 20, 2024, 4:22pm UTC](https://forums.realmacsoftware.com/t/file-hatchess-editing/43308/5 "2024-05-20T16:22:23Z")

</div>

> [@emmeci47](#):
>
> RewriteEngine On RewriteCond %{REQUEST\_FILENAME} !-f RewriteCond %{REQUEST\_FILENAME} !-d RewriteRule ^(.\*)$ index.php?/$1 [L]

Hi @emmeci47,

That bit of code tells the server to point any request for a page or file that does **not** exist back to the index.php file to handle the redirect.

This won’t work on your website, as there is no index.php file to point to. So, in short, the advice that SiteGround is giving you, makes no sense.

It looks to me that your website is stored in the wrong folder on your server. If you go to the publishing settings in RapidWeaver, you should see the folder it stores your site in here:

 ![Capto_Capture 2024-05-20_18-20-40_](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/f/2/f264541b846d8a413d19aff647ebc8d187d63503.png)

_(the folder (or path) on this image is of course an example)_

Check with SiteGround if you have the correct path in this setting field. They should be able to tell you if it do, or what it should be if it don’t.

Cheers,  
Erwin

---

<div class="post-metadata">

**Author:** ![emmeci47](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/emmeci47/32/5419_2.png) [@emmeci47](https://forums.realmacsoftware.com/u/emmeci47)\
**Post date:** [May 20, 2024, 5:39pm UTC](https://forums.realmacsoftware.com/t/file-hatchess-editing/43308/6 "2024-05-20T17:39:54Z")

</div>

Hi, Dan.

I’ve two questions:

1. Can you suggest me a wright cod for RW?
2. Do you have a preferred host, instead of SiteGround?

I hope they’re the last two so as not to abuse your kindness.

Thanks for your time, Anna.

---

<div class="post-metadata">

**Author:** ![emmeci47](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/emmeci47/32/5419_2.png) [@emmeci47](https://forums.realmacsoftware.com/u/emmeci47)\
**Post date:** [May 20, 2024, 5:43pm UTC](https://forums.realmacsoftware.com/t/file-hatchess-editing/43308/7 "2024-05-20T17:43:14Z")

</div>

Thanks, Erwin.  
Fingers crossed and I’ll try!  
Kind regards, Anna.

---

<div class="post-metadata">

**Author:** ![ToF](https://avatars.discourse-cdn.com/v4/letter/t/db5fbb/32.png) [@ToF](https://forums.realmacsoftware.com/u/ToF)\
**Post date:** [May 20, 2024, 5:43pm UTC](https://forums.realmacsoftware.com/t/file-hatchess-editing/43308/8 "2024-05-20T17:43:50Z")

</div>

Hi, can you see the files, when you look in your host server of via e.g. File Zilla or any other ftp-software?

---

<div class="post-metadata">

**Author:** ![emmeci47](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/emmeci47/32/5419_2.png) [@emmeci47](https://forums.realmacsoftware.com/u/emmeci47)\
**Post date:** [May 20, 2024, 6:01pm UTC](https://forums.realmacsoftware.com/t/file-hatchess-editing/43308/9 "2024-05-20T18:01:11Z")

</div>

Yes, I see all files. But if I open the .htachess file it is empty, without text…

---

<div class="post-metadata">

**Author:** ![scottsteven](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/scottsteven/32/3418_2.png) [@scottsteven](https://forums.realmacsoftware.com/u/scottsteven)\
**Post date:** [May 20, 2024, 6:19pm UTC](https://forums.realmacsoftware.com/t/file-hatchess-editing/43308/10 "2024-05-20T18:19:34Z")

</div>

hmm on the root of your site where you want the viewer to go first what is the name of the file. by the way none of these worked for now  
[https://leoccasionidianna.it/index.php](https://leoccasionidianna.it/index.php)  
[https://leoccasionidianna.it/index.html](https://leoccasionidianna.it/index.html)  
[https://leoccasionidianna.it/VETRINA.php](https://leoccasionidianna.it/VETRINA.php)  
[https://leoccasionidianna.it/VETRINA.html](https://leoccasionidianna.it/VETRINA.html)

---

<div class="post-metadata">

**Author:** ![emmeci47](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/emmeci47/32/5419_2.png) [@emmeci47](https://forums.realmacsoftware.com/u/emmeci47)\
**Post date:** [May 20, 2024, 7:31pm UTC](https://forums.realmacsoftware.com/t/file-hatchess-editing/43308/11 "2024-05-20T19:31:02Z")

</div>

Ciao, Scott.

First [https://leoccasionidianna.it/VETRINA.html](https://leoccasionidianna.it/VETRINA.html)

---

<div class="post-metadata">

**Author:** ![Heroic\_Nonsense](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/heroic_nonsense/32/20666_2.png) [@Heroic\_Nonsense](https://forums.realmacsoftware.com/u/Heroic_Nonsense)\
**Post date:** [May 20, 2024, 7:44pm UTC](https://forums.realmacsoftware.com/t/file-hatchess-editing/43308/12 "2024-05-20T19:44:49Z")

</div>

Hi @emmeci47,

```auto
https://leoccasionidianna.it/VETRINA.html

```

… does not exist.

Please check the setting that I explained in my previous post - my guess is that that’s the answer.

Cheers,  
Erwin

---

<div class="post-metadata">

**Author:** ![differentdan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/differentdan/32/33530_2.png) [@differentdan](https://forums.realmacsoftware.com/u/differentdan)\
**Post date:** [May 21, 2024, 1:51am UTC](https://forums.realmacsoftware.com/t/file-hatchess-editing/43308/13 "2024-05-21T01:51:49Z")

</div>

> [@emmeci47](#):
>
> Can you suggest me a wright cod for RW?

You don’t really need any .htaccess code for RapidWeaver unless you are using a third-party addon/plugin/stack that specifically calls for it. Other than that any .htaccess code you use would be optional. 🙂

> [@emmeci47](#):
>
> Do you have a preferred host, instead of SiteGround?

I prefer hosting on my own cloud instance, but SiteGround is ok for shared hosting, at least it was ~7 years ago, I haven’t really followed anything they’ve been doing since then.

> [@emmeci47](#):
>
> I hope they’re the last two so as not to abuse your kindness.

Please feel free to ask as many questions as needed, that’s what we’re here for. 🙂

> [@emmeci47](#):
>
> First [https://leoccasionidianna.it/VETRINA.html](https://leoccasionidianna.it/VETRINA.html)

It’s recommended to give your pages a filename of either index.html or index.php. So your home page URL should be [https://leoccasionidianna.it/index.html](https://leoccasionidianna.it/index.html)

---

<div class="post-metadata">

**Author:** ![ToF](https://avatars.discourse-cdn.com/v4/letter/t/db5fbb/32.png) [@ToF](https://forums.realmacsoftware.com/u/ToF)\
**Post date:** [May 21, 2024, 4:47am UTC](https://forums.realmacsoftware.com/t/file-hatchess-editing/43308/14 "2024-05-21T04:47:51Z")

</div>

I tried to see your sitemap ([https://leoccasionidianna.it/sitemap.xml](https://leoccasionidianna.it/sitemap.xml)), but I got also an 404. Or did you disable the sitemap?

Is your webspace (the right folder) connected to your domain?

Can you post your sitemap code?

---

<div class="post-metadata">

**Author:** ![ToF](https://avatars.discourse-cdn.com/v4/letter/t/db5fbb/32.png) [@ToF](https://forums.realmacsoftware.com/u/ToF)\
**Post date:** [May 21, 2024, 8:56am UTC](https://forums.realmacsoftware.com/t/file-hatchess-editing/43308/15 "2024-05-21T08:56:36Z")

</div>

take a look here: [Where to upload my website files? - SiteGround KB](https://www.siteground.com/kb/upload-website-files/)
