Not able to access Subfolders | Php framework

Viewed 110

I am editing a site that is made using some framework on PHP doesn't show which. All the public files like CSS,JS are inside a Public directory. I want to upload a separate site within the domain like www.domain.com/newsite i have created the folder new site but i am not able to access it it goes to 404 page not found.

the Htacess of the root is as below

RewriteEngine on



RewriteRule ^(?!sitemap\.xml$).(.*)\.xml$ [R=404,L]
RewriteRule ^(?!robots\.txt$).(.*)\.txt$ [R=404,L]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

RewriteRule    ^$    public/    [L]
RewriteRule    (.*) public/$1    [L]

<ifModule mod_headers.c>
    Header set Access-Control-Allow-Origin: *
</ifModule>

I created anther folder inside public directory newsite still now able to open it.

Htacess inside public directory is

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l



RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]

Any suggestions how can i access the folder directly

3 Answers
Related