I have a web site on a shared hosting server. My directory layout looks like this
/home /user /public_html /pics /family
There is an index.php file in public_html. I need help writing .htaccess rules that will
- Serve the index.php file when www.domain.org is requested
- Force the user back to public_html when www.domain.org/pics is requested
- Allow the user to see the directory contents when www.domain.org/pics/family is requested
I experimented with a lot of combinations of RewriteCond and RewriteRule, but I don't understand the documentation and examples well enough to know if what I want to do is even possible.
The web server application is some version of Apache.