Adventures in the Lone Star State

URL Rewriting

I know that I rarely write about web analytics on my personal blog. However, I did come across this today. It’s very nice for those of use who already have websites with dynamic URLs (like my wedding website). Right now, this site is set up with a simple GET query (e.g., http://www.dianeandfernando.com/home.php?view=registry). With this Dynamic URL generator, the URL would be changed to:

  1. www.dianeandfernando.com/home-view-registry.html OR
  2. www.dianeandfernando.com/home/view/registry/

How wonderful is this?! Since I already built this site, I don’t want to have to recreate it using a framework (e.g., CakePHP or Djanjo). This little tool allows me to keep the existing infrastructure intact while making it easier for search engines to scrape my URLs.

When you enter a dynamic URL into their tool, it will tell you have the URLs may be rewritten. In addition, it will provide you a little code snippet to add to your .htaccess file that will dynamically rewrite the URLS.

Things to Remember
Please note that this only works with Apache web servers. Also, both your old and new URLs work:

  • www.dianeandfernando.com/home.php?view=registry (original)
  • www.dianeandfernando.com/home/view/registry/ (new one)
March 20th, 2008 at 1:01 pm


2 Responses to “URL Rewriting”

  1. Elise Says:

    Got your {very nice!} invitation in the mail and just RSVPed on the website. Which was very easy & so cool.

  2. Fernando Says:

    Thanks Elise! Glad you were able to RSVP without any problems.

Leave a Reply