php - htaccess ignoring RewriteRule following new RewriteCond & RewriteRule -


the below code works rewrite page.php

rewriteengine on rewriterule   ^pages/(.+)$   /page.php?page=$1 [l] 

the when adding below bit new redirect works rewrite of page.php stops.

rewriteengine on  rewritecond %{http_host} ^www.example.fr [nc] rewriterule ^(.*)$ http://www.example.fr/fr/$1 [l,r=301,nc]  rewriterule   ^pages/(.+)$   /page.php?page=$1 [l] 

can explain why , how fix page.php rewrite stops working when code has not changed, have added new redirect works.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -