Perhaps this is because .htaccess redirects trailing slashes to URLs without a slash.
In this section, in your .htaccess file, Apache redirects everything with a trailing slash â if not a folder â to its beginning. This causes problems because the project public is in the directory.
RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)/$ /$1 [L,R=301]
Replace the second rule:
RewriteRule ^(.*)/$ /moduleTesting/$1 [L,R=301]
Note: it is better not to use the directory as your general purpose because such problems occur. You better create a fake local domain, for example: module-test.dev or something else.
source share