Confused about folder and filenames when creating subpages


(debbie kendall) #1

I believe it is recommended in RW for SEO purposes to leave the filename as index.php/index.html and create your URL in the folder field on the page inspector… all fine… but i’m a bit confused about how to create URLs for pages that are added to the website as subpages… say a ‘prints’ page with ‘landscape’ prints subpage and ‘animal’ prints subpage

Do we have the choice in the folder field on the page inspector when creating the URLs for these pages to either:-

OPTION 1: Create URLs for each page like this :
Page 1: folder field: prints
Page 2: folder field: landscape
Page 3: folder field: animals

OR OPTION 2: Create URLs like this:
Page 1: folder field: prints
Page 2: folder field: /prints/landscape
Page 3: folder field: /prints/animals

and is this choice independent of how the pages are added to the website project - i.e. can you only use option 2 if they are added to the project as subpages or is that irrelevant when naming URLs

Thanks
Debbie


(Jannis from inStacks Software) #2

That is the correct one. The folder structure will build itself hierarchically.

Never use the / slash character in the folder field. Actually that should be forbidden by RW automatically @simon.


(Dominick Designs Websites & Tech Training Seminars LLC) #3

I think this is the best way to keep everything organized in your directory.

OPTION 2: Create URLs like this:
Page 1: folder field: prints
Page 2: folder field: /prints/landscape
Page 3: folder field: /prints/animals


(debbie kendall) #4

Hi there Jannis … can you give me more info on why the / shouldn’t be used in the folder field… in some cases this is recommended as per this recent tutorial


(Jannis from inStacks Software) #5

@Ben I would not recommend adding / in the folder path, as this could break some stacks addons. @simon can tell you more about that.


(Doug Bennett) #6

Would love to know what the issue is in having a / in a folder path. This is a standard part of path names.

@instacks @simon @ben


(Jannis from inStacks Software) #7

/ is not a standard part of a folder NAME.


(Doug Bennett) #8

It is part of the UNIX (Linux) path name.

Unix (web servers) use directories, not folders.

My Question is WHAT PROBLEM DOES IT CAUSE?

Many of beens advanced tutorials, like using RW to set up and control an ROBOTS.TXT file require a / in the folder name.


(Jannis from inStacks Software) #9

I am talking about rare cases of errors inside stacks, when the path cannot be evaluated because you define a custom folder name starting with a slash, so that RW will generate the page inside root instead of the parent pages subfolder.

If you don’t have a stack not working correctly, you do not have to care. So easy…