How to include article title in url?

Discussion in 'Apache' started by mikka23, Feb 21, 2007.

  1. #1
    I am building a cms for my site. I currently was passsing just the id in the url with php ie. tutorialspost.php?id=1. I then made mod rewrite so that my urls now display as tutorial-1.html.

    I have two questions though. How could I make it so the url was tutorial-1-tutorialname(dynamic).html?

    I presume it would be in the php and I would have to send the title with the id in the GET form? If you know please post.

    My second question is. Is using tutorial-1.html SEO friendly? Will it benefit my site much?


    Thanks for reading, All posts appreciated unless they are useless :)
     
    mikka23, Feb 21, 2007 IP
  2. mikka23

    mikka23 Peon

    Messages:
    678
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Any ideas? Would really like to be able to do this.
     
    mikka23, Feb 28, 2007 IP
  3. RobertD

    RobertD Peon

    Messages:
    542
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #3
    don't know exactly how you would dynamically parse the page title to the URL, but I do know that it will definitely help with SEO if you can get it working.
     
    RobertD, Apr 6, 2007 IP
  4. ForumJoiner

    ForumJoiner Active Member

    Messages:
    762
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    83
    #4
    I would like more details, to better answer the question. Do you want something like what is explained in the article below?
    http://www.sitepoint.com/article/search-engine-friendly-urls


    Let's say tutorial-1.html is about making web pages, more exactly about using WYSIWYG editors. If you name your page WYSIWYG-editors.html, people searching for WYSIWYG editors will have better chances to find your page. The name "tutorial-1.html" by itself doesn't tell much. For instance, I don't have a clue what is about - I have to assume. Google doesn't assume, it just gives your page a lower position in the search results.
     
    ForumJoiner, Apr 12, 2007 IP