Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've seen in some web hostings that they have public_html folder for public use. They do not use .htaccess file, and when I go to www.mydomain.com - public_html loads.

On my WAMP, I have some of folders pointing to some of my projects. I would like that I could enter localhost/myproject1 and to go to www/myproject1/public_html. Also it would be nice if my .htaccess from that web hosting works on my localhost.

My .htaccess diverts all traffics to only index.php in my custom MVC project.

#
Options +FollowSymLinks
#
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

In www/myproject1/ I have few more folders with Models, Viewers and Controllers of MVC project and I want them to be hidden.

Hope someone will help. Thanks.

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.