Need Help With Simple Mod_Rewrite

Discussion in 'Programming' started by michiganfootball20, Oct 25, 2010.

  1. #1
    Ok so im new to the whole mod_rewrite thing and im trying to apply it to my pages at http://www.sparksheets.com/music.php?sheetid=($sheetid)

    so yeah i got pages loading based on the variable sheetid and want the pages to load in the format:

    http://www.sparksheets.com/($title)-by-($artist)/

    where the variables $title and $artist are in the same mysql row as $sheetid. im wondering first if a mod_rewrite like this is possible because i did not include the other two new variables in the initial url, and if it is possible how to do it.

    if it isnt possible i can just change the urls to include the two variables.

    I appreciate your help!
     
    michiganfootball20, Oct 25, 2010 IP