Creating SE Friendly URLs in PHP

Discussion in 'Search Engine Optimization' started by slickazsilk, May 28, 2008.

  1. #1
    Hi masters,

    I have been trying to read more on SE friendly URLs, and here is what i got so far.

    say i have a site I have a page that has a query string on its URL and im trying to make it more SE friendly.

    1. How do I convert the URL (ex. www.domain.com/article?id=123) to www.domain.com/article/123?

    As i have read so far, im going to use Mod_rewrite for this. meaning il will supposedly try to catch www.domain.com/article?id=123 and rewrite it to www.domain.com/article/123. Is this right?

    2. for my second question:

    Regarding pages that will call www.domain.com/article/123 what would be the href="" of the link? www.domain.com/article?id=123 <-- this one? or would it be possible for my link to have a href value of www.domain.com/article/123 ?

    Thanks guys i know this might be a newbie question for some, but im just confirming if i undertand some SEO topics right. :)
     
    slickazsilk, May 28, 2008 IP