redirect from html to cgi

Discussion in 'Site & Server Administration' started by nexis, Apr 16, 2008.

  1. #1
    hello members..

    I have registered a site and intend to make a lyrics site. I am using mysql database and lyrics are stored in a table along with the singer names and other attributes. I can write a perl cgi script to retrieve the song,
    Hovever i want to place hypelinks from a..z on index page and when one clicks on say b he should get lyrics of the songs starting with b. but i dont want my address bar to show cgi-bin/get_song_a.cgi.. instead i wud prefer my address bar to show something like http://kyrics.com/lyrics/a.html.

    Please let me know how can this be acomplished thanks in advance
     
    nexis, Apr 16, 2008 IP
  2. SSANZ

    SSANZ Peon

    Messages:
    861
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you can't mask urls, redirect it properly.
     
    SSANZ, Apr 16, 2008 IP
  3. kaijohannkursch

    kaijohannkursch Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Use mod_rewrite (google it) to rewrite urls in any way you want. You can also "include" the cgis within the html files via SSI...
     
    kaijohannkursch, Apr 17, 2008 IP