I'm realizing a php website and I'm trying to split all the files in a way that should give me the possibility to update them easily. In the current structure I've:
- header.php
- menu.php
- footer.php
These files are included in the following pages:
- page1.php
- page2.php
- page3.php
On each one of the pages above I write specific content. At the end my urls are:
http://www.example.com/page1.php http://www.example.com/page2.php http://www.example.com/page3.php
But what I would like to do is to reproduce the wordpress structure that uses index.php only as output.
So, just to go more in detail, I would like to realize an index.php inside of which I'll include just one time:
- header.php
- menu.php
- footer.php
and including the page1.php content, the page2.php content and the page3.php content. At the end I need to have as URL a permalink that says:
http://www.example.com/page1 http://www.example.com/page2 http://www.example.com/page3
I've checked on the web but seems there's nothing online useful for my needs and when I check "permalinks" users talk only of wordpress. Could you help me please on this activity? Tell me if my request is not so clear or I'm wrong on something. Thanks!