joined:Dec 2, 2008
I'm having trouble writing the htaccess rewrite rules for an MVC pattern, so that all requests get redirected to a public folder.
http://www.example.com should go to http://www.example.com/public/index.php
http://www.example.com/mypage should go to
And requests for images, JS, CSS, etc. should be like:
http://www.example.com/css/stylesheet.css but really goes to http://www.example.com/public/css/stylesheet.css
Can someone please suggest appropriate rules for this? I'm getting infinite redirects mainly.