I have a CakePHP app that has some html static files in webroot
.
HTML files are in some directories like webroot/dir1/dir2/page.html
.
When I enter url: site.com/dir1
I get redirected to site.com/webroot/dir1/
but when I enter site.com/dir1/
I get redirected to the first page site.com
And If I enter url for the html file: site.com/dir1/dir2/page.html
I get redirected to the first page site.com
. It supposed to show the html file. How can I make it show html file and not redirect to first page?
In my public_html the htaccess is:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
</IfModule>
In the webroot the htaccess is:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>