I am developing a website based on MVC Design Pattern.
I need to access to another folder from public folder but the problem is it recognizes public folder as root directory. I checked path using window.location.pathname in javascript and it returns / so it's literally impossible to access to out of root directory.
I guess .htaccess file redirects the path. can anyone let me know how to set Web folder as root directory ?
.htaccess in Web
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ public/ [L]
RewriteRule (.*) public/$1 [L]
</IfModule>
.htaccess in public
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?url=$1 [PT,L]
</IfModule>
