Search Engine Friendly URLs with PHP

Nov 11, 2008 | Tags: SEO, PHP | del.icio.us del.icio.us | digg Digg

5. Results

If we have done all of the previous steps and everything is ok, these are the results we'll achieve:

For the requests:

http://yourdomain.com
http://yourdomain.com/home.php
http://yourcomain.com/contact.php

The browser displays our homepage and our contact info. For the requests:

http://yourdomain.com/Decline_of_The_Roman_Empire
http://yourdomain.com/final-war-of-the-roman-republic.html
http://yourdomain.com/Richard-1-of-England

The browser displays the articles nicely. And request for a non exist page:

http://yourdomain.com/A_Missing_Page

The browser displays the text: 404 - Page Not Found. Perfect!