I am attempting to develop a url shortener, and I wish to have the ability to take any figures soon after the domain and also have them passed like a variable url. So for instance http://google.com/asdf would become http://www.google.com/?url=asdf.

This is what I've for mod_rewrite at this time, however i keep obtaining a 400 Bad Request:

RewriteEngine on  
RewriteCond %{REQUEST_FILENAME} !-f  
RewriteCond %{REQUEST_FILENAME} !-d  
RewriteRule ^(.*) index.php?url=$1 [L,QSA]  

Try changing ^(.*) with ^(.*)$

RewriteRule ^(.*)$ index.php?url=$1 [L,QSA]

Edit: Try changing index.php with /index.php

RewriteRule ^(.*)$ /index.php?url=$1 [L,QSA]

If you would like everything to visit, the reason for using RewriteCond? Check it out without them.