# 404 Page-Creation and Location

**URL:** <https://forums.realmacsoftware.com/t/404-page-creation-and-location/13731>\
**Category:** RapidWeaver Classic\
**Created:** [April 22, 2017, 1:42pm UTC](https://forums.realmacsoftware.com/t/404-page-creation-and-location/13731 "2017-04-22T13:42:29Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mokane99](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@mokane99](https://forums.realmacsoftware.com/u/mokane99)\
**Post date:** [April 22, 2017, 1:42pm UTC](https://forums.realmacsoftware.com/t/404-page-creation-and-location/13731/1 "2017-04-22T13:42:29Z")

</div>

I’m trying to create a 404 page. When I create the page in Rapidweaver, generating the page gives me the following directory structure. ![](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/2X/0/007efcde7f48a01879fa2b8d873c28b5412f2f6b.png)

The problem, of course, is that a 404 page shouldn’t have its own “index.html” page, it should be just “404.html”. How can I get the directory structure right–with added graphics and info–so that this page will display correctly on an already-existing site? In other words,

–what modifications need to be done to a RW-generated custom 404 page; and  
–where does that page go? (I’m assuming next to the existing ‘index.html’ page.)

---

<div class="post-metadata">

**Author:** ![instacks](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/instacks/32/23339_2.png) [@instacks](https://forums.realmacsoftware.com/u/instacks)\
**Post date:** [April 22, 2017, 3:02pm UTC](https://forums.realmacsoftware.com/t/404-page-creation-and-location/13731/2 "2017-04-22T15:02:41Z")

</div>

> [@Should we make our own 404 pages for our beautiful bespoke sites?](http://forums.realmacsoftware.com/t/should-we-make-our-own-404-pages-for-our-beautiful-bespoke-sites/4890):
>
> I’m thinking that bespoke 404’s make more sense than having nothing there at all, but I’m a bit nervous as to how to implement properly. I get that I’d need to make a new page, so call the folder 404 and the page index.html and design it within the existing layout and have an ‘oops’ sentence here, but there’s more to it isn’t there? I’m sure I saw on one of Joe Workman’s blog a whole thing about having to go into the htaccess. I just want to start setting up simple 404’s (also the same for ot…

> **[Create a custom Rapidweaver 404 page](http://dooboxsoftware.blogspot.com/2016/08/create-custom-rapidweaver-404-page.html)**
>
> The issue. So the issue is that if you just create a 404.html page and add the line ErrorDocument 404 /404.html to the htaccess file, then w...

Maybe these links will help.

---

<div class="post-metadata">

**Author:** ![mokane99](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@mokane99](https://forums.realmacsoftware.com/u/mokane99)\
**Post date:** [April 22, 2017, 3:40pm UTC](https://forums.realmacsoftware.com/t/404-page-creation-and-location/13731/4 "2017-04-22T15:40:36Z")

</div>

OK, but “just make a page” in RW results in the generation of the file structure as shown above. Because these files reside in the root directory, along with the files generated for “index.html,” you simply can’t add them there. Sure, if you just create an all text html file with no supporting files outside of RW (\begin{html}…\end{html}} you could do it, but then there are no supporting files.  
So what should the file structure look like?

---

<div class="post-metadata">

**Author:** ![mokane99](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@mokane99](https://forums.realmacsoftware.com/u/mokane99)\
**Post date:** [April 22, 2017, 3:54pm UTC](https://forums.realmacsoftware.com/t/404-page-creation-and-location/13731/7 "2017-04-22T15:54:48Z")

</div>

The difference is that you made a 404 page as part of a single RW project. In my case, because I’m running multiple sites, the 404 page was its own project because I’d like to use it for each different site. In other words, the 404 page is its own \*.rw project file.

---

<div class="post-metadata">

**Author:** ![teefers](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/teefers/32/8173_2.png) [@teefers](https://forums.realmacsoftware.com/u/teefers)\
**Post date:** [April 22, 2017, 4:10pm UTC](https://forums.realmacsoftware.com/t/404-page-creation-and-location/13731/9 "2017-04-22T16:10:16Z")

</div>

Just copy the page to each sites project file. Your going to need a htacess for each site anyway.

---

<div class="post-metadata">

**Author:** ![Rovertek](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/rovertek/32/223_2.png) [@Rovertek](https://forums.realmacsoftware.com/u/Rovertek)\
**Post date:** [April 22, 2017, 4:12pm UTC](https://forums.realmacsoftware.com/t/404-page-creation-and-location/13731/10 "2017-04-22T16:12:56Z")

</div>

Making a 404 page as a separate project does not make any sense. It always has to be a part of a regular project. What makes sense is to reuse your 404 page in multiple projects, if necessary.

In RW project, in Page Inspector, create a folder for your 404 page (give it a name – something like… “404” or “PageNotFound” maybe?). The fact that the page itself is named **index.html** is not a problem, but you can name it anything you want. Just be sure it is placed in its own folder.

Then, as Steve suggested, make a **.htaccess** file and in it reference your 404 page. That’s it. You can reuse the same 404 page in other projects by copying it and adjusting the reference in the new .htaccess file.

---

<div class="post-metadata">

**Author:** ![instacks](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/instacks/32/23339_2.png) [@instacks](https://forums.realmacsoftware.com/u/instacks)\
**Post date:** [April 22, 2017, 4:32pm UTC](https://forums.realmacsoftware.com/t/404-page-creation-and-location/13731/11 "2017-04-22T16:32:48Z")

</div>

> [@Rovertek](#):
>
> It always has to be a part of a regular project.

Why should that be a need?

---

<div class="post-metadata">

**Author:** ![teefers](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/teefers/32/8173_2.png) [@teefers](https://forums.realmacsoftware.com/u/teefers)\
**Post date:** [April 22, 2017, 4:51pm UTC](https://forums.realmacsoftware.com/t/404-page-creation-and-location/13731/12 "2017-04-22T16:51:32Z")

</div>

One reason I think it needs to be part of the regular project is I would assume you would want regular navigation on the page.  
Would like the customer who mistyped a URL to get back to the homepage or another page on the site.

---

<div class="post-metadata">

**Author:** ![Rovertek](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/rovertek/32/223_2.png) [@Rovertek](https://forums.realmacsoftware.com/u/Rovertek)\
**Post date:** [April 22, 2017, 4:53pm UTC](https://forums.realmacsoftware.com/t/404-page-creation-and-location/13731/13 "2017-04-22T16:53:55Z")

</div>

Another reason: if you create a project for just 404 page, it will be put in the root – hence the Original Poster’s problem.
