removing part of filename from url

Discussion in 'Apache' started by Justin M, Nov 27, 2011.

  1. #1
    I'm totally lost when it comes to .htaccess rewrites, but I'm hoping this can be done.

    I want to take m.website.com/file?id=name.jpg and turn it into m.website.com/name, without the file?id= part or file extension. Can mod_rewrite do this? Thank you.
     
    Justin M, Nov 27, 2011 IP
  2. Leno B

    Leno B Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi,

    If you are using a cpanel server then you can use the cpanel option redirect to point files as you mentioned.
     
    Leno B, Nov 28, 2011 IP
  3. dren

    dren Active Member

    Messages:
    86
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #3
    mod_rewrite can do this yes.
     
    dren, Dec 1, 2011 IP