# How do I change the generic page name in the URL? Use a different file name or folder name?

**URL:** <https://forums.realmacsoftware.com/t/how-do-i-change-the-generic-page-name-in-the-url-use-a-different-file-name-or-folder-name/40034>\
**Category:** RapidWeaver Classic\
**Created:** [July 20, 2021, 8:07pm UTC](https://forums.realmacsoftware.com/t/how-do-i-change-the-generic-page-name-in-the-url-use-a-different-file-name-or-folder-name/40034 "2021-07-20T20:07:04Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![KipV](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/kipv/32/33413_2.png) [@KipV](https://forums.realmacsoftware.com/u/KipV)\
**Post date:** [July 20, 2021, 8:07pm UTC](https://forums.realmacsoftware.com/t/how-do-i-change-the-generic-page-name-in-the-url-use-a-different-file-name-or-folder-name/40034/1 "2021-07-20T20:07:04Z")

</div>

Right now all my URLs show something like /Page-6/ at the end of the URL. The file names in Rapidweaver seem to default to Index.html or Index.php. My experience in the past was that “index” was to be used for the homepage.

If I want a more useful URL title is it best to change the folder name? By goal is just to make the URLs as short as possible. My old site used to have several slashes in it which I don’t think would be the case for a site that only goes about one level deep.

---

<div class="post-metadata">

**Author:** ![joemart1951](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/joemart1951/32/1193_2.png) [@joemart1951](https://forums.realmacsoftware.com/u/joemart1951)\
**Post date:** [July 20, 2021, 8:52pm UTC](https://forums.realmacsoftware.com/t/how-do-i-change-the-generic-page-name-in-the-url-use-a-different-file-name-or-folder-name/40034/2 "2021-07-20T20:52:49Z")

</div>

![Screen Shot 2021-07-20 at 3.49.22 PM](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/e/f/efea323e57c8788e631ab2ed5e7f5ebb7546cd12.jpeg)  
Try this…Remember…no spaces or special characters in folder names & index.html or index.php for file name.

---

<div class="post-metadata">

**Author:** ![KipV](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/kipv/32/33413_2.png) [@KipV](https://forums.realmacsoftware.com/u/KipV)\
**Post date:** [July 20, 2021, 9:10pm UTC](https://forums.realmacsoftware.com/t/how-do-i-change-the-generic-page-name-in-the-url-use-a-different-file-name-or-folder-name/40034/3 "2021-07-20T21:10:02Z")

</div>

Okay, do I re-name both the folder and the file name there? And then presumably I should use the same name for the folder and filename? Or maybe it doesn’t matter?

To me it seems the folder naming becomes a bigger deal the more levels of folder hierarchy there is. In my case the site only goes one folder level deep.

---

<div class="post-metadata">

**Author:** ![DLH](https://avatars.discourse-cdn.com/v4/letter/d/b5e925/32.png) [@DLH](https://forums.realmacsoftware.com/u/DLH)\
**Post date:** [July 20, 2021, 9:20pm UTC](https://forums.realmacsoftware.com/t/how-do-i-change-the-generic-page-name-in-the-url-use-a-different-file-name-or-folder-name/40034/4 "2021-07-20T21:20:49Z")

</div>

Current best practices are to just set the folder name and leave the file name as “index.html” or “index.php”, as appropriate. When you do that, people only need to enter the folder in their browser. The web server will see that it’s a folder and not a file and then look in that folder for an index file. This eliminates the need for someone to type (or even know) the file extension. If you later add something to the page that requires PHP and changes the extension from html to php, all existing links will work.

As mentioned, it’s recommended to use lowercase, no spaces or special cases in the folder name.

---

<div class="post-metadata">

**Author:** ![joemart1951](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/joemart1951/32/1193_2.png) [@joemart1951](https://forums.realmacsoftware.com/u/joemart1951)\
**Post date:** [July 20, 2021, 9:21pm UTC](https://forums.realmacsoftware.com/t/how-do-i-change-the-generic-page-name-in-the-url-use-a-different-file-name-or-folder-name/40034/5 "2021-07-20T21:21:33Z")

</div>

No…Name the folder something easy to remember what is there and all the file names should be index.html or index.php

---

<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:** [July 20, 2021, 9:21pm UTC](https://forums.realmacsoftware.com/t/how-do-i-change-the-generic-page-name-in-the-url-use-a-different-file-name-or-folder-name/40034/6 "2021-07-20T21:21:39Z")

</div>

Leave the filename as index.html or index.php.

Also, use lower case letters and `-` or `_` no spaces.

---

<div class="post-metadata">

**Author:** ![KipV](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/kipv/32/33413_2.png) [@KipV](https://forums.realmacsoftware.com/u/KipV)\
**Post date:** [July 20, 2021, 9:30pm UTC](https://forums.realmacsoftware.com/t/how-do-i-change-the-generic-page-name-in-the-url-use-a-different-file-name-or-folder-name/40034/7 "2021-07-20T21:30:12Z")

</div>

I see that makes total sense. Good very simple.

---

<div class="post-metadata">

**Author:** ![KipV](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/kipv/32/33413_2.png) [@KipV](https://forums.realmacsoftware.com/u/KipV)\
**Post date:** [August 3, 2021, 1:13am UTC](https://forums.realmacsoftware.com/t/how-do-i-change-the-generic-page-name-in-the-url-use-a-different-file-name-or-folder-name/40034/8 "2021-08-03T01:13:34Z")

</div>

I noticed something odd happening after I accidentally changed one of the page names. The file name is “page0” now and the iPad page shows up totally blank. The weird thing to me is that the computer and phone seem to show show the page just fine. [https://www.retrospect90s.life/melon/page0.html](https://www.retrospect90s.life/melon/page0.html)

Would it be best to delete that page and folder on the server, rename the file to "index"and re-upload it?

 ![IMG_0035](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/a/6/a684dd1b406b7e147110569d16191cce22c7de31.png)

---

<div class="post-metadata">

**Author:** ![joeworkman](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/joeworkman/32/23780_2.png) [@joeworkman](https://forums.realmacsoftware.com/u/joeworkman)\
**Post date:** [August 3, 2021, 1:26am UTC](https://forums.realmacsoftware.com/t/how-do-i-change-the-generic-page-name-in-the-url-use-a-different-file-name-or-folder-name/40034/9 "2021-08-03T01:26:01Z")

</div>

I strongly urge you to keep your page names set to index.html or index.php. You should only need to update the folder name.

---

<div class="post-metadata">

**Author:** ![KipV](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/kipv/32/33413_2.png) [@KipV](https://forums.realmacsoftware.com/u/KipV)\
**Post date:** [August 3, 2021, 2:33am UTC](https://forums.realmacsoftware.com/t/how-do-i-change-the-generic-page-name-in-the-url-use-a-different-file-name-or-folder-name/40034/10 "2021-08-03T02:33:29Z")

</div>

Yeah it was a bit of an accident. All the other pages I only changed the folder name not the file name. Can I just change the name back to Index now and delete the other page that is there currently on the server?

---

<div class="post-metadata">

**Author:** ![joeworkman](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/joeworkman/32/23780_2.png) [@joeworkman](https://forums.realmacsoftware.com/u/joeworkman)\
**Post date:** [August 3, 2021, 4:05am UTC](https://forums.realmacsoftware.com/t/how-do-i-change-the-generic-page-name-in-the-url-use-a-different-file-name-or-folder-name/40034/11 "2021-08-03T04:05:39Z")

</div>

Yes. Of course you can do that. 🙂

---

<div class="post-metadata">

**Author:** ![KipV](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/kipv/32/33413_2.png) [@KipV](https://forums.realmacsoftware.com/u/KipV)\
**Post date:** [August 3, 2021, 5:28pm UTC](https://forums.realmacsoftware.com/t/how-do-i-change-the-generic-page-name-in-the-url-use-a-different-file-name-or-folder-name/40034/12 "2021-08-03T17:28:05Z")

</div>

Oh good, I just realized recently that the files don’t get over-written but they just add to what is in the folder already. As long as I remove the old page it seemed like there wouldn’t be confusion which page it should go to at all. Thanks

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/system/32/25301_2.png) [@system](https://forums.realmacsoftware.com/u/system)\
**Post date:** [September 3, 2021, 3:28am UTC](https://forums.realmacsoftware.com/t/how-do-i-change-the-generic-page-name-in-the-url-use-a-different-file-name-or-folder-name/40034/13 "2021-09-03T03:28:21Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
