Hi everybody. I'm trying to setup some small layout - template framework in php - and everything is going smooth except one thing - url rewriting.
I suck at regexp, and I suck even worse at mod_rewrite. And I'm in kinda hurry to get this stuff out, so can you please help me?
I need one .htaccess file that has just two rules
Every request that ends with .png/.jpg/.gif/.js/.css handle as is. (eg: http://mysite.com/img/image.png > http://mysite.com/img/image.png)
Everything else rewrite in following manner:
http://mysite.com/foo/bar/44 > http://mysite.com/public/index.php?1=foo&2=bar&3=44 http://mysite.com/ > http://mysite.com/public/index.php
Many thanks people! If you wish, I will put your credits on stuff, and then I'll share it as opensource stuff.