how can i rewrite this url

Discussion in 'Apache' started by kcm4web, Sep 16, 2010.

  1. #1
    hi i have a url
    index.php?page=auction-calender
    Code (markup):
    want to make
    index/page/auction-calender
    Code (markup):

     
    kcm4web, Sep 16, 2010 IP
  2. morency

    morency Well-Known Member

    Messages:
    35
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    103
    #2
    RewriteRule ^index/page/(.*)$ index.php?page=$1
    Code (markup):
    try this.
    it should work for all pages like index.php?page=blablabla -> index/page/blablabla
     
    morency, Sep 16, 2010 IP
  3. kcm4web

    kcm4web Peon

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks a lot Morency...its works like charm
     
    kcm4web, Sep 17, 2010 IP