Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

mod rewrite rule to redirect to public folder




3:53 pm on Aug 19, 2010 (gmt 0)

5+ Year Member

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.


9:15 am on Aug 20, 2010 (gmt 0)

5+ Year Member

Can anyone help me with these redirect rules?


10:31 am on Aug 20, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

try posting this in Apache forum, peple like jdMorgan can help you on this in the blink of an eye


11:48 am on Aug 20, 2010 (gmt 0)

5+ Year Member

OK thanks

Featured Threads

Hot Threads This Week

Hot Threads This Month