You must use the Rewrite base in the three .htaccess files. In the root directory containing the application directories, lib, the plugin and the provider should look like
<IfModule mod_rewrite.c> RewriteEngine on RewriteBase / RewriteRule ^$ app/webroot/ [L] RewriteRule (.*) app/webroot/$1 [L] </IfModule>
The application / htaccess should look like
<IfModule mod_rewrite.c> RewriteEngine on RewriteBase /app/ RewriteRule ^$ webroot/ [L] RewriteRule (.*) webroot/$1 [L] </IfModule>
Finally, the application / webroot / htaccess should look like
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /app/webroot RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php [QSA,L] </IfModule>
If your library is not in the root folder, you will also need to change the values ββin core.php to map it to the corresponding address. To do this, you can check the advanced setting in the cooks book.
source share