1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Need help Converting Static URL to Dynamic

Discussion in 'Apache' started by nainil, Jan 29, 2010.

  1. #1
    Hi,

    Using Mod Rewrite, I need to convert:

    http://localhost/user/12517

    to:
    http://localhost/peoplefind/view-user-profile?empid=12517

    How would I do that? Any help would be appreciated.

    Nainil Chheda
     
    Last edited: Jan 29, 2010
    nainil, Jan 29, 2010 IP
  2. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #2
    I think you are missing something in your conversion.

    Did you mean to say? localhost/peoplefind/view-user-profile.php?empid=12517

    A file extension of some sort need to be in there.
     
    Colbyt, Jan 29, 2010 IP
  3. nainil

    nainil Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes. You are correct.

    I want to convert:

    http://localhost/user/12517

    to:

    http://localhost/peoplefind/view-user-profile.php?empid=12517
     
    nainil, Jan 29, 2010 IP
  4. Wtfuxbbq

    Wtfuxbbq Peon

    Messages:
    61
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    RewriteEngine On
    RewriteRule ^user/([0-9]+)$ /peoplefind/view-user-profile.php?empid=$1
    Code (markup):
    Should do it
     
    Wtfuxbbq, Feb 2, 2010 IP