rewrite was working until I added &s=1

Discussion in 'Apache' started by Dark Rider, Oct 4, 2007.

  1. #1
    Hello when my rewrite was
    RewriteRule ^(.*)/(.*)/(.*)\/$ /tutorial.php?id=$2?category_name=$1?rewrite=$3 [L]
    Code (markup):
    it worked fine, but I needed to add another part to the url for my php script to work and now this new one does not work.

    RewriteRule ^(.*)/(.*)/(.*)/(.*)\/$ /tutorial.php?id=$2?category_name=$1?rewrite=$3&s=$4 [L]
    Code (markup):
    anyone have any idea whats wrong?
     
    If someone posts a solution, use the "Best Answer" link in their post to pick it as the best answer.
    Dark Rider, Oct 4, 2007 IP
  2. Camay123

    Camay123 Well-Known Member

    Messages:
    3,423
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    160
    #2
    As this rule been respected ?

    List the line with the most variables first, then the second most and so on.

    Just a suggestion.
     
    Camay123, Oct 4, 2007 Set Best Answer IP
    1 person likes this.
  3. Dark Rider

    Dark Rider Guest

    Best Answers:
    0
    #3
    Thanks you very much, that works. +rep ;)