Hello Reader!
If you looking to fix a default language prefix for your all url in cakePhp then you can follow the steps which is the easiest and clean way :-
Open file routes.php from the location Config/routes.php
There in first line write the code as below
Router::prefix('admin', function($routes) {
// All routes here will be prefixed with `/admin`
});
Now every url will have /admin/ as its prefix default
0 Comment(s)