.htaccess - htaccess URL routing for PHP MVC? -


i've been searching , have yet find article me. i'm unfamiliar when comes rewrite engine of htaccess files, , developing php mvc framework.

basically, root of webserver, need page requests controllers / actions in url redirect app/index.php

so, example site.com/login/ direct index.php, , uri parsed out php enact login controller passed post data.

i think 'usual' way forward requests non-existent files , directories controller:

rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^ app/index.php [l] 

Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -