Fernando's Hideaway

Babblings of a techie through college, church, and the world.

Name:
Location: Provo, Utah, United States

I don't claim to have any authority on anything I post. I'm just here to let people know what I think.

20 March 2008

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)

Labels:

2 Comments:

Blogger elise said...

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

7:54 PM  
Blogger Fernando said...

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

7:56 PM  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home