Categories
josephscott

Pleasant URLs in PHP

phpRiot.com posted a new article on creating search engine friendly URLs in PHP. I always like to see this topic get attention, there are too many sites on the web that generate very long and difficult to read URLs. Usually this involves transforming GET parameters into part of the URL. Here is an example of a URL using GET parameters:

http://www.example.com/articles/?post_id=987654321

Here is an example using a more pleasant URL:

http://www.example.com/articles/title/nice-php-urls

The phpRiot article goes on to describe different methods for achieving this.

Leave a Reply

Your email address will not be published. Required fields are marked *