Forum

Thread tagged as: Question

Folder structure for a multi language website

Every language has its files in a specific folder, e.g. «en» or «de». The structure of Perch shows the index-file as the first folder (=file), all other files are in a subfolder of it. How can I achieve that there is just a folder «en» and the index-file is listed inside as a subpage like all other files? Many thanks!

Martin Stettler

Martin Stettler 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, you can do that. I'm afraid I don't follow what problem you're having.

Ok, thanks. Sorry for being unclear. The folder structure from the webfolder should be the same in Perch. It looks like this:

httpdocs/en/index.php, file1.php, file2.php, ...
             /de/index.php, file1.php, file2.php, ...
             /fr/index.php, file1.php, file2.php, ...

My problem, the index.php file is the folder «en» and not inside.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok - so why not move it to where you want it to be?

In the webfolder everything is on the right place. My problem is, that in Perch each index-file is the language-folder itself.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Have you set the 'subpage folder' option on the page?

When I put the first perch region on a index-file it appears in Perch always on the level of the language folder not inside:

EN with region

not

EN ( no region) then inside: index.php with region

Drew McLellan

Drew McLellan 2638 points
Perch Support

Have you set the 'subpage folder' option on the page?

I can't find this option. I can just add a new subpage to a page. Where do I do this?

Drew McLellan

Drew McLellan 2638 points
Perch Support

In the page options. Are you logged in as an administrator?

Thanks, I worked it out!