I am trying to design a folder structure for a website project I am working on. A lot of sites these days seem to have the following link structure:
http://www.example.com/news/news-item-one/
http://www.example.com/about-us/
Can I make my site work like this without making a new folder for each page I have and putting an index.php file in it?
i.e http://www.example.com/news/new-item-one.php reads http://www.example.com/news/news-item-one/
You can use a web application framework like CodeIgniter or CakePHP to do URI routing for you:
http://codeigniter.com/
http://cakephp.org/
This is done with an .htaccess file which either of those frameworks can provide in example documents and they have extensive documentation about URI routing. For example on CI:
http://codeigniter.com/user_guide/general/urls.html