help with .htaccess

Discussion in 'Apache' started by saudshah, May 5, 2010.

  1. #1
    morning,

    i'm trying to seo friendly of my urls but something is going wrong

    here is my webpasge http://pakistani.pk/songs

    and my .htaccess code:

    RewriteEngine On
    
    RewriteRule ^songs/album([^-]*)-([^-]*)-([^-]*)$ /songs/index.php?action=album&id=$1&artist=$2&alname=$3 
    RewriteRule ^songs\/artist([^-]*)-([^-]*)$ /songs/genre_artists.php?id=$1&art=$2 
    RewriteRule ^songs\/album([^-]*)-([^-]*)$ /songs/genre_albums.php?id=$1&abl=$2 [L]
    
    
    Code (markup):
    all urls has been re wrote but they are not targeting the destination
     
    saudshah, May 5, 2010 IP
  2. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #2
    RewriteEngine on
    RewriteRule ^songs\/album([^-]*)-([^-]*)-([^-]*)$ /songs/index.php?action=album&id=$1&artist=$2&alname=$3
    RewriteRule ^songs\/artist([^-]*)-([^-]*)$ /songs/genre_artists.php?id=$1&art=$2
    RewriteRule ^songs\/album([^-]*)-([^-]*)$ /songs/genre_albums.php?id=$1&abl=$2 [L]


    Line 2

    \ is missing

    Regards

    Alex
     
    kmap, May 5, 2010 IP
  3. saudshah

    saudshah Peon

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    its still giving me 404 not found error =(, and also its not showing the correct urls , check the browse genre area and hover mouse on any link you will see the url text is different and url is showing from one inner level of that category.
     
    saudshah, May 5, 2010 IP
  4. saudshah

    saudshah Peon

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    anyone??????
     
    saudshah, May 5, 2010 IP