And it works fine for that purpose, but the problem is that if I have a link to http://localhost/news/category/ that link is now broken, because it’s also trying to do a redirect on that.
I’ve tested the above regex in several testing tools, and according to all of them, it should not be seeing news/category/ as a match, and yet on the server that’s exactly what it seems to be doing. What can I do to fix this?
No comment on the <IfModule> block (and it’s repeated tests for every @#$%^ request?
rst01,
Wait a minute! You’re redirecting from news/././ to story/./ to news.php AND from news/./.* to news.php? Why the two step process you begin with? Why the “catch all” afterward?
Also, if your
Sorry, that’s not what “[a-z]+” says - you’re missing a hyphen at the start of the range definition (which you do have correctly for the story-title).
Back to your original question, though: I believe that Rémon has hit on the likely culprit.