model view controller - htaccess and MVC routing -


Well I started a mini MVC base coding which I can only use on the client website, which is the same The type of router uses the class as the KPHP currently has a URL display like this:

http: //localhost/mvc/index.php?page= blog / viewall

Which becomes the controller and it says that functions such as kppp index (), view (), and so on.

Now, I'm not sure how can I create URLs with .htaccess like this http: // localhost / mvc / blog / viewall

I was trying to add it to the .htaccess file:

rewrite rule ^ (. *) $ Index.php? Page = $ 1 [QSA]

This is your redirect rule like this:

  Revive OnNewRight OnConconnect% {REQUEST_URI}! ^ / Mvc / index.php/.* Rivroitium ^ / MVC /(.*) / MVC / Index.php? Page = $ 1 [QSA, L]    

Comments