PHP Url Structure

Discussion in 'PHP' started by Michaelr, May 8, 2009.

  1. #1
    I have a PHP forum version 2.021 and was wonder how you get each post to have the title in the url for seo reasons and secondly how to get it at the start of the total url. is title.mydomain@mysite. instead of mydomain/title.
     
    Michaelr, May 8, 2009 IP
  2. Progg

    Progg Peon

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Without reprogramming the entire site to parse out things form $_SERVER[REQUEST_URI] your best hope is to use mod_rewrite with .htaccess

    Most good software will give you clear instructions on how to do this or even incorporate it into their software (such as wordpress). Try looking around for people running the same software that have used mod_rewrite or research it and be a pioneer and try it yourself :)
     
    Progg, May 8, 2009 IP
  3. mayank@digitalpoint

    mayank@digitalpoint Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You have to use .htaccess for this. Click Here for more detail.
     
    mayank@digitalpoint, May 8, 2009 IP
  4. Michaelr

    Michaelr Peon

    Messages:
    535
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks guys for the information. I'll give the mod rewrite a go!
     
    Michaelr, May 8, 2009 IP
  5. usadesi

    usadesi Peon

    Messages:
    296
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thank you....
     
    usadesi, May 8, 2009 IP