I'm trying to crate a subdomain such that when I ask for "edit.travisdart.com/some/directory" it will go to "edit.travisdart.com/referred.php?var1=some/directory". I figure the only way to do this is with mod_rewrite. Unfortunately, none of my tries have been successful. Here's my .htaccess file:
RewriteRule ^http://edit\.travisdart\.com(.*)$ http://edit.travisdart.com/refered.php?var1=$1 [T=application/x-httpd-php,L,R,NC]
Why doesn't this work?