Hi everyone !
I have already tried, with no succes, to deploy a cake 3 app last summer.
But works duty oblige me to come back with the same problem !
My app works perfectly on built-in cake server and on WAMP server but not on my prod server.
Only difference is that I need to deploy my app in a subdirectory on my prod server.
So, Url from local server is : localhost:XXXX/MyApp
Now, my prod url is : server_host/sub/MyApp
Which not works
I have change app.php to use set “base” to “/sub/MyApp”, decommented “baseUrl” and set “FullBaseUrl” to “server_host/sub/MyApp”.
Also change my .htacces as described in many other topics like this :
root :
RewriteEngine on RewriteBase /sub/MyApp/ RewriteRule ^$ webroot/ [L] RewriteRule (.*) webroot/$1 [L]root/webroot :
RewriteEngine On RewriteBase /sub/MyApp/webroot/ RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !^/(webroot/)?(img|css|js)/(.*)$ RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]Just note that I cannot change anything on the server itself and mod_rewrite is enable