regex - Why are these two urls redirecting to the same page? -
i using
rewriterule ^(.*)/?$ index.php?page=a&i=$1 rewriterule ^b/(.*)/?$ index.php?page=b&i=$1 to redirect urls of form mysite/something index.php?page=a&i=something , mysite/b/something index.php?page=b&i=something. however, both urls redirecting index.php?page=a&i=something. why happening?
^[^\/]+\/([^\/]+)$ index.php?page=a&i=$1 ^[^\/]+\/b\/([^\/]+)$ index.php?page=b&i=$1
Comments
Post a Comment