I’m writing web application using codeigniter framework. Here is the structure of document root
application
system
website
What I want is that only the website directory to be accessаble. Here is the content of .htaccess
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} !^/website/
RewriteRule .* /website/%1 [QSA]
When I type the site url in browser I’m redirected to website dir. So far, so good. It works.
The problem comes when I try to access a dir within the website directory. I get
404 page not found
What to do so the directories below the website dir to be accessаble ?
This is the rule you need: