Help with removing webpage extensions from url

Discussion in 'Programming' started by dark1ne, Jun 1, 2009.

  1. #1
    On my website I want to index pages like
    mysite.com/id/1
    mysite.com/id/2
    But i'm getting /id/1/ and want to drop the / at the end
    giving me mysite.com/id/1 instead of mysite.com/id/1/
    is there a .htaccess code to do it?
    I've know that it can be done but don't know how!
     
    dark1ne, Jun 1, 2009 IP
  2. Social.Network

    Social.Network Member

    Messages:
    517
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    35
    #2
    Social.Network, Jun 1, 2009 IP
  3. dark1ne

    dark1ne Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i have no idea what i'm supposed to do.
    which code is it? and do i put it in the .htaccess located in public_html or one .htacces in public_html/id/1/ folder?
     
    dark1ne, Jun 1, 2009 IP