urlrewrite for querystrings

Discussion in 'Apache' started by wren11, Apr 25, 2013.

  1. #1
    Hi,

    Simple question,

    how can i url rewrite, i tried to myself but failed miserably!.

    host.com/movie.php?id=123, 123 being any number!
    to: host.com/movie/123

    regards!
     
    Solved! View solution.
    wren11, Apr 25, 2013 IP
  2. #2
    This should do the trick:

    RewriteRule ^movie/(.*) movie.php?id=$1
     
    darkvisje, May 2, 2013 IP
    ryan_uk likes this.
  3. wren11

    wren11 Active Member

    Messages:
    89
    Likes Received:
    10
    Best Answers:
    3
    Trophy Points:
    53
    #3
    thank you just what i needed! :)
     
    wren11, May 2, 2013 IP
  4. darkvisje

    darkvisje Well-Known Member

    Messages:
    231
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    120
    #4
    Your welcome my friend
     
    darkvisje, May 2, 2013 IP