How to add prefix to all urls

I want to add a prefix to all urls ?
thanks

You cloud use
CakePHP routing

But if you want to add a prefix to all routing paths than it may be more convenient to put CakePHP in a subfolder

In general, it seems that overriding Helper::url might be the solution.

Using a subfolder is the thing not to do . How are you going to deal with sessions ? cachue, etc .

I don’t no your use case,
As for using a sub-folder you just don’t

All cakePHP routing is done in '.\config\routes.php '
I advice tor read https://book.cakephp.org/3.0/en/development/routing.html#prefix-routing
and try it out

Hi, Yes this is what I used. Some configuration in conjunction with routes.php thanks