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

Popular posts from this blog

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

json - Zend error Connection -

javascript - Trigger mouseenter when an animated element touches mouse -