Mod_rewrite SEO BLOG

Discussion in 'Apache' started by unlisted80, Sep 29, 2006.

  1. #1
    Hi

    current look like this:
    mydomain.com/blog/view/?ID=01


    want to look like this?
    mydomain.com/blog/blog-title-go-here.html

    anyone help me to write this in htacess


    many manthanks advance
     
    unlisted80, Sep 29, 2006 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    Do you know how to edit the script so it links like that?? mod-rewrite won't put the title in the URL. You'll also have to know how to make it replace spaces with -.
     
    Nintendo, Sep 30, 2006 IP
  3. wissam

    wissam Well-Known Member

    Messages:
    2,289
    Likes Received:
    78
    Best Answers:
    1
    Trophy Points:
    185
    #3
    At least tell us what script do you use, I did program one of my sites my self and I used ?page=x to include flat files, when I used mod rewrite it converted ?page=x with x.html and my x was really search engine friendly ...
     
    wissam, Sep 30, 2006 IP
  4. brokensoft

    brokensoft Active Member

    Messages:
    214
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #4
    i want to do it for pafiledb 3.1 and phpbb
     
    brokensoft, Oct 11, 2006 IP
  5. seolion

    seolion Active Member

    Messages:
    1,495
    Likes Received:
    97
    Best Answers:
    0
    Trophy Points:
    90
    #5
    Let me explain what Nintendo is trying to say..

    Here some part of the whole thing is taken care by the script..

    check out --http://kuzhalmannamagraharam.com/test/this-is-my-home-page.html

    You can replace this-is-my-home-page with any other phrase and still you will find a page.

    Here my index.php captures what I keep in place of 'this-is-my-home-page' and accordingly gives an output.

    Same way you can modify the script so that it captures the parameter as given above.

    You can configure it as , take the parameter -- the page title as in your example,
    output the content which is stored in your database which matches for this title.
     
    seolion, Oct 11, 2006 IP