I have CakePHP project placed on the subdomain on multihosting with the following path to the app directory.
/www/domains/sub.domain.com
The problem is that all links in the app are changed to:
https://sub.domain.com/domains/sub.domain.com/health-check
instead of the:
https://sub.domain.com/health-check
CakePHP .htacess has the following format:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^(\.well-known/.*)$ $1 [L]
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
</IfModule>
I tried to set some rewrite rules but without the luck.
Thanks for any advice.