I’ve run into a bug and I’m not sure of its source. I use mod_rewrite for the following:
RewriteRule ^stuff$ index.php?page=stuff [L]
and it works just fine, but when I use
RewriteRule ^(.+?)$ index.php?page=$1 [L]
CSS is no longer applied to the page and the code doesn’t seem to read GET requests.
Can someone elaborate on why this happens for me?
Add a rewrite condition to not rewite if the file is present & use the QSA flag to allow appended parameters: