# Same and doubled nested folders

**URL:** <https://forums.realmacsoftware.com/t/same-and-doubled-nested-folders/34649>\
**Category:** RapidWeaver Classic\
**Created:** [September 10, 2020, 7:18pm UTC](https://forums.realmacsoftware.com/t/same-and-doubled-nested-folders/34649 "2020-09-10T19:18:13Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![OmarKN](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/omarkn/32/14654_2.png) [@OmarKN](https://forums.realmacsoftware.com/u/OmarKN)\
**Post date:** [September 10, 2020, 7:18pm UTC](https://forums.realmacsoftware.com/t/same-and-doubled-nested-folders/34649/1 "2020-09-10T19:18:13Z")

</div>

Hi and good day,  
When uploading with a 3rd party FTP app, there are produced a lot of ’same and doubled nested folders.’

See if the slash is correct.

What’s going on here?

Like this:

 ![](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/f/b/fb5e809a98c2207d0a3802aa2df52dbd9e3c84b9.png)

(No info on this in the online UG.)

P.S. It seems that in some instances both path alternatives result in a visual page,  
other times the page loads (for both alternatives) but is completely empty.

??

/

with best regards, Omar KN, Stockholm, Sweden

---

<div class="post-metadata">

**Author:** ![Aaron](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/aaron/32/12210_2.png) [@Aaron](https://forums.realmacsoftware.com/u/Aaron)\
**Post date:** [September 22, 2020, 4:54pm UTC](https://forums.realmacsoftware.com/t/same-and-doubled-nested-folders/34649/2 "2020-09-22T16:54:26Z")

</div>

Just seeing this. There shouldn’t be a slash in front of the folder name or after it.

---

<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:** [September 22, 2020, 10:03pm UTC](https://forums.realmacsoftware.com/t/same-and-doubled-nested-folders/34649/3 "2020-09-22T22:03:29Z")

</div>

And the file names should always be index.(html or php)

---

<div class="post-metadata">

**Author:** ![OmarKN](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/omarkn/32/14654_2.png) [@OmarKN](https://forums.realmacsoftware.com/u/OmarKN)\
**Post date:** [September 25, 2020, 9:10pm UTC](https://forums.realmacsoftware.com/t/same-and-doubled-nested-folders/34649/4 "2020-09-25T21:10:36Z")

</div>

Hi and good day,

Now that I took away all front slashes from the folders and upload the files (with 3rd party app.)  
I get nested folders again, like so:

[https://share.getcloudapp.com/nOunz2DG](https://share.getcloudapp.com/nOunz2DG)

So now I have 1 file from the morning (old version with /folder in RW)  
[https://www.livingislam.org/religion-islam/abu-ddarda.html](https://www.livingislam.org/religion-islam/abu-ddarda.html)

and this evening version ( without /folder in RW)  
[https://www.livingislam.org/religion-islam/religion-islam/abu-ddarda.html](https://www.livingislam.org/religion-islam/religion-islam/abu-ddarda.html)

this can’t be right.

/

with best regards, Omar KN, Stockholm, Sweden

---

<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:** [September 25, 2020, 10:20pm UTC](https://forums.realmacsoftware.com/t/same-and-doubled-nested-folders/34649/5 "2020-09-25T22:20:11Z")

</div>

You still have lots of naming structure wrong…  
folder1  
tradition/tradition  
religion-islam/religion-islam

And all of the file names need to be index.html or .php

---

<div class="post-metadata">

**Author:** ![OmarKN](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/omarkn/32/14654_2.png) [@OmarKN](https://forums.realmacsoftware.com/u/OmarKN)\
**Post date:** [September 26, 2020, 8:55am UTC](https://forums.realmacsoftware.com/t/same-and-doubled-nested-folders/34649/6 "2020-09-26T08:55:24Z")

</div>

So far I’ve come to the following understanding of how RW8 builds folders & filenames :

[https://share.getcloudapp.com/GGurPGow](https://share.getcloudapp.com/GGurPGow)

See pic 1.)

Society is a RW-leftcolumn-folder (in the RW UI)  
it is a page ”evil-of-corruption…html, in the folder ‘society’ → no slash here. pic 2.)

But for the other 6 subpages (see: RW UI leftcolumn) do need a slash: pic 3.)

@joemart1951  
see pic 4.  
hoe to get rid of the trailing slash?  
mypage/society/testsoc/

/

with best regards, Omar KN, Stockholm, Sweden

---

<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:** [September 26, 2020, 12:52pm UTC](https://forums.realmacsoftware.com/t/same-and-doubled-nested-folders/34649/7 "2020-09-26T12:52:48Z")

</div>

If you are using what’s called ”tidy links” (the default, advanced settings), the URL ends with a trailing slash `/`. This is because the user doesn’t have to worry about typing the entire file name and extension. In addition, the URL being displayed becomes much shorter and easier to display on remote links.

Because the URL is pointing to a folder and not the complete file name it ends with the slash. The webserver figures out what file (e.g., index.html or index.php) to serve.

You might want to check out this video

[![](https://img.youtube.com/vi/gx09hV3549E/maxresdefault.jpg "URL Customization in RapidWeaver 7 — Free RapidWeaver Tutorial") ](https://www.youtube.com/watch?v=gx09hV3549E)

---

<div class="post-metadata">

**Author:** ![OmarKN](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/omarkn/32/14654_2.png) [@OmarKN](https://forums.realmacsoftware.com/u/OmarKN)\
**Post date:** [September 26, 2020, 3:26pm UTC](https://forums.realmacsoftware.com/t/same-and-doubled-nested-folders/34649/8 "2020-09-26T15:26:35Z")

</div>

Had all but forgotten about this video -thank you!

To get rid of URL with a trailing slash `/` there is a .htaccess rule:

```
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R] # <- for test, for prod use [L,R=301]

```

from [http://stackoverflow.com](https://stackoverflow.com/questions/21417263/htaccess-add-remove-trailing-slash-from-url)  
which however didn’t do much.

---

<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:** [October 27, 2020, 1:33am UTC](https://forums.realmacsoftware.com/t/same-and-doubled-nested-folders/34649/9 "2020-10-27T01:33:49Z")

</div>

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