URLs of Custom Files for Snake-Case File Names

Hello everyone

Custom file URLs don’t take the settings from the rest of the project

In the image, it should be http://localhost:8080/ToursVirtuales

Captura url

Show your custom file settings.

Read Custom Files → Path → Case 1:

In this case, the Path is the route for the page, e.g. “/myroute” (no quotes). If route is unspecified , the file name without extension will be used as the route, e.g. if your file name you entered is Home.php , then the route is /Home ; if Lowercase routes is enabled, then the route is /home .

If you want to use /ToursVirtuales as your route, you should enter the Path setting as /ToursVirtuales.

Also, better follow PSR-4 and use file name in Pascal case (since your file name will be converted to class name of the Custom File). So you’d better enter ToursVirtuales.php as your File name.