I've googled this but can't seem to figure out.
I'm looking to simply redirect any path requested to a GET parameter in index.php:
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/.+\.(js|css|png|jpg|gif|ico)$
RewriteRule ^(.*)$ http://localhost/site/index.php?request_url=http://%{HTTP_HOST}%{REQUEST_URI} [L,QSA]
Now, redirect works but it's painfully slow, and gets executed twice.
Do I have to add another condition that checks whether request_url is already there? If so, how do I write that? Can't seem to figure out.
Right now it's not exactly a redirect loop, just really slow.
Any help appreciated.
Thanks a 1000!