i need help with .htaccess

Discussion in 'Programming' started by bm4web, Jan 30, 2010.

  1. #1
    i have an url that passing value as mysitename.com/filename.php?id=1

    i want this to be appear mysitename.com/test

    where test will be dynamic that is if id=3 it will be something else and vice versa

    i have used the code

    RewriteEngine On
    RewriteRule ^([a-zA-Z0-9_-]+)$ filename.php?id=$1
    RewriteRule ^([a-zA-Z0-9_-]+)/$ filename.php?id=$1

    i am getting now

    mysitename.com/filename.php?id=1

    as
    mysitename.com/1

    but i want to display that ids name from DB is there any way to do this

    i think just need to edit my scrip to something to achive this so that i can get help

    let me know, i am coder too, if you help me that will be great :)
     
    bm4web, Jan 30, 2010 IP
  2. bm4web

    bm4web Well-Known Member

    Messages:
    718
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    130
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    thanks for all those who contacted me, i found the solution in my own way :cool:
     
    bm4web, Jan 31, 2010 IP