#1
  1. *Programmer In Training*
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2005
    Location
    SE London
    Posts
    371
    Rep Power
    12

    Mod_rewrite capabilities


    Hi guys,

    I can sort out mod_rewrite where if i type in a url www.domain.co.uk/game/gametitle/

    It'll bring back a valid url for lets say: www.domain.co.uk/game.php?title=gametitle

    However, these firnedly urls are not visible on the page themselves, meaning that the unfriendly urls are not being named for the page, but only AFTER the user has clicked the unfriendly url, bringing back a readable url.

    What can I do, minus installing software like helicon ape onto my server, to support this, or is there no other way?

    So basically, how do i change a link readable on my site from www.domain.co.uk/game?query=string
    to
    www.domain.co.uk/game/string/

    Regards,
    Joe.
  2. #2
  3. No Profile Picture
    Lost in code
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2004
    Posts
    8,317
    Rep Power
    7170
    Change the source code that is generating the link on your page. mod_rewrite can't rewrite the links inside the HTML that you're sending to the browser.
    PHP FAQ

    Originally Posted by Spad
    Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around

IMN logo majestic logo threadwatch logo seochat tools logo