g1smd - 1:43 pm on Dec 17, 2013 (gmt 0)
@Lucy Even if the internal rewrite to PHP script is the very first rule, you can still run into problems. Once the rule pattern for the internal rewrite is matched, the htaccess is re-parsed for further matches. Therefore a non-www request for the old URL will often result in the internal PHP script path being exposed as an external www URL. The RewriteCond on the non-www to www redirect is essential to stop that happening.