LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   mod_rewrite script doesn't work. (https://www.linuxquestions.org/questions/linux-networking-3/mod_rewrite-script-doesnt-work-168618/)

Travis86 04-10-2004 08:45 PM

mod_rewrite script doesn't work.
 
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:

Code:

RewriteEngine on
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?


All times are GMT -5. The time now is 10:10 AM.