how to convert php links to html

Discussion in 'PHP' started by Seleno, Sep 9, 2007.

  1. #1
    Seleno, Sep 9, 2007 IP
  2. Cooker

    Cooker Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You could use mod_rewrire extension
     
    Cooker, Sep 9, 2007 IP
  3. streety

    streety Peon

    Messages:
    321
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You would also need to change how all the links on the page are created.

    The mod_rewrite code would be easy. Getting the script to create all it's links with .html would be the really slow part.

    Why do you want to do this? I don't see any advantage.
     
    streety, Sep 9, 2007 IP
  4. Seleno

    Seleno Peon

    Messages:
    671
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi there streety, i didn't get your help till now
    i need to do this coz its better for google for sure
    so if you know the way plz create the file and give me the way
    thanx
     
    Seleno, Sep 9, 2007 IP
  5. abixalmon

    abixalmon Well-Known Member

    Messages:
    378
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    120
    #5
    abixalmon, Sep 9, 2007 IP
  6. Seleno

    Seleno Peon

    Messages:
    671
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    hi there abixalmon
    thanx for your help
    i added it as .htaccess file,didn't work with me!
    can u put the full code for me plz?
     
    Seleno, Sep 9, 2007 IP
  7. k2pi

    k2pi Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    le rule you need to inculde in your htaccess :

    RewriteRule linker/([0-9]+) index.php?cat=$1
     
    k2pi, Sep 9, 2007 IP
  8. streety

    streety Peon

    Messages:
    321
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Where have you heard this? I seriously doubt it is true.

    You'll quite often use mod_rewrite to reformat the get variables (everything after the ?) to make it easier for the search engines but as far as I know the file extension makes no difference.
     
    streety, Sep 9, 2007 IP