I am utilizing a Content management systems that transmits all demands for an index.php file while using following RewriteRule

RewriteRule .* index.php [L]         

However in news reports portion of the site the Content management systems is producing news links such as this: /news?month=201106

I would like my news links such as this: /news/month/201106 and that i will accomplish this with PHP code.

I understand virtually how to offer the rewrite with Apache whether it were not for your catchall I'd use something similar to this:

RewriteRule ^news/month/(.+)$ news?month=$1 

However my problem would be that the Content management systems is catching the calls and looking for /news/month/201106 so it cannot and throws an Content management systems level 404

I have educate yourself about creating exceptions however i can't see how to obtain:

  1. Apache to trap the rewrite before it will get delivered to the issue all
  2. The Content management systems to then process the rewritten URL normally (ie: receive news?month=201106 and procedure that normally)

I am sure this really is most likely lower towards the Rewrite flag and also the order by which these directives are written however i just cannot get results.

1) Apache to trap the rewrite before it will get delivered to the issue all

This can be done with the addition of a RewriteCond before your RewriteRule .* index.php [L], to ensure that it appears something similar to this:

RewriteCond %{REQUEST_URI} !^/news
RewriteRule .* index.php [L]

2) The Content management systems to then process the rewritten URL normally (ie: receive news?month=201106 and procedure that normally)

The second rule you had, RewriteRule ^news/month/(.+)$ news?month=$1 should take proper care of that.