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

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

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

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -