0

I have seen some websites using index.php?p=page instead of page.php. I would like to know what the best way to do that using php is, and if there's any advantages to that.

Phoebe
  • 108
  • 1
  • 11
  • routing to all pages via index.php and proper use of htaccess – Thamilhan Sep 02 '17 at 13:16
  • Kids these days call it "front controller" pattern. Consolidating initalization (backend, authorization, templating, etc.) is why it's usually preferred. – mario Sep 02 '17 at 13:20
  • Thanks for pointing me to some other answers. I noticed in the second one, there was some quick and dirty ways to do it, but I would like something thats simple but not really quick and dirty. – Phoebe Sep 03 '17 at 16:05

0 Answers0