Mod_rewrite is not including subdirectories
问题 I have a mod_rewrite (mostly thanks to stack member Olaf) that redirects from index.php?URL=pages/the-page.php to simply the-page . The problem is, when a page is requested that isn't directly in pages (i.e., pages/sub ), it redirects my .css and .js which is no good. What I'm trying to accomplish is this: ONLY rewrite files in the pages folder, but include ALL subdirectores of it. An important thing is that it never, ever, ever rewrites the URL of the files folder. Here's the code: Options