I am a beginner PHP programmer. I searched google for a “Dynamic PHP website tutorials”. I found some stuff. They use $_GET variable to make the website dynamic, so the URL’s appear like this:
- example.com/?page=home
- example.com/?page=about
- example.com/?page=Downloads
and so on…
But most of the dynamic websites that I found on the internet has links like this:
- example.com
- example.com/about
- example.com/download and so on….
So how do they do so ?? Have they got folders for all the catogories ?? And Also some websites have article URLs (eg : example.com/articles/posts/2010/article1.php). It would be a reall mess if they’ve got folders for all items. If not then How ?? Can someone give an example please ?
If you’re using apache then read: http://httpd.apache.org/docs/current/mod/mod_rewrite.html
If you’re using IIS then read: http://www.iis.net/downloads/microsoft/url-rewrite