Defining home page conflicts in subfolders

Hi team!

Install Kirby version 4 in a subfolder as follows:

:link: mydomain.com/c

Inside the folder named :file_folder: c/ I have another folder called content/c in which I have a list of folders as follows:

content/c/
|– 1_ic
|– 2_fl

I defined in my :file_folder: site/config.php file that the c/ folder is the home:

<?php

	return [
		//= Set folder
		'home' => 'c',

		//= Debug mode
		'debug'  => true,
	];

 ?>

But when I browse my folders I get the following URLs:

:link: mydomain.com/c/c/ic

What I need is to β€œno longer show me the :file_folder:/c folder in my URL”, because I already defined my home in my config file.

I hope for your help and response.

Thanks!

Well, if these pages are children of the /home folder (now called c), this is the url structure to be expected, given that you installed Kirby in a subfolder called c.

So if the folder was called home as in a standard installation, the url would be mydomain.com/subfolder/home/my-first-home-child, or without the subfolder installation, mydomain.com/home/my-first-home-child`.

If you want to get rid of home aka c, you would need a route, see Routes | Kirby CMS

1 Like

Hi @texnixe !

Ok, thank you very much for your answer and help.

Thank you very much.

Regards!