/articles/view/xx tells the browser: from the root of the site (https://www.mywebsite) go to /articles/view/xx.
If you want it from the place you are, you can use absolute paths (https://www.mywebsite/dev/client_name/articles/view/xx) or relative paths (dev/client_name/articles/view/xx).
I mean, if you give a URL of /articles/view/xx, that will work on a production site where /articles really is at the webroot of the site, but it won’t work on a dev site where /articles doesn’t exist because the whole site is under /dev/client_name. This is how the internet works, there is no getting around it. What you probably need to do is instead set up a separate subdomain for each client, so instead of http://yourdomain.com/dev/client_name, their site is under http://client_name.yourdomain.com, for example.
Thank you again.
But, I do not agree on everything or this would mean that you can’t install cake in a subfolder.
I think the solution comes from the .htaccess files.
I will try for a next client.
You can install Cake wherever you want to. But if you’re using URLs that start with a /, they need to match whatever setup you’ve got for your Cake application. If the app is under /dev/client, then /articles/view/xx is no more a valid URL than /humpty/dumpty is. The URL you need to use, based on this setup of your Cake app, is /dev/client/articles/view/xx.
It is possible to set up .htaccess to make this work, but it would be the .htaccess under the main webroot, not under /dev/client, and it didn’t sound like that’s the situation you’re faced with; if you’ve got that kind of flexibility in the main webroot, then why not just put the app there?