.htaccess/database problem

Discussion in 'Apache' started by login, Aug 8, 2007.

  1. #1
    Hi. I have a .htaccess file like this at bestmp3links.com/lyrics/ :

    Options +FollowSymLinks
    RewriteEngine on
    RewriteBase /
    RewriteRule letter,(.*),(.*)\.html letter.php?letter=$1&strona=$2
    RewriteRule artist,(.*),(.*),(.*)\.html lyrics.php?artistid=$1&strona=$3
    RewriteRule (.*),(.*),(.*)\.html show.php?lyricid=$1
    RewriteRule print,(.*)\.html print.php?lyricid=$1

    Its not working for me, can you please tell me what I have to change in the .htaccess file to get the page to work ?

    Thanks.
     
    login, Aug 8, 2007 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    Options +FollowSymLinks
    RewriteEngine on
    RewriteBase /lyrics/
    RewriteRule ^letter,([^.]+),([^.]+)\.html$ letter.php?letter=$1&strona=$2 [L]
    RewriteRule ^artist,([^.]+),([^.]+),([^.]+)\.html$ lyrics.php?artistid=$1&strona=$3 [L]
    RewriteRule ^([^.]+),([^.]+),([^.]+)\.html$ show.php?lyricid=$1 [L]
    RewriteRule ^print,([^.]+)\.html$ print.php?lyricid=$1 [L]

    and the comma might be messing it up. It redirects to the non-mod_rewrite URL.
     
    Nintendo, Aug 8, 2007 IP
  3. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    #3
    Nintendo, you are the best :) I was kind of hoping that you should stumble over this thread.
    This gives me the opportunity to say how much I love your pics (not your singing cause that really messed up my tinnitus when I played it on full power in my living room (my neighbors thought that I was the one singing and they still live in that believes (that is actually true))) :D

    Thanks anyway, please never leave DP.
     
    login, Aug 8, 2007 IP