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

json - Zend error Connection -

javascript - Trigger mouseenter when an animated element touches mouse -

java - Using Spring @Transactional with a combination of readOnly and write, when does this entity get committed? -