how to do?

Discussion in 'Apache' started by whosedomain, Aug 26, 2009.

  1. #1
    I want abc.com/123/ rediret to abc.com/123.
    How to use .htacces or php to achieve this ? many thanks.
     
    whosedomain, Aug 26, 2009 IP
  2. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #2
    RewriteEngine On
    
    RewriteRule   ^(.+)/$    /$1  [R=301,L]
    Code (markup):
     
    premiumscripts, Aug 26, 2009 IP