.htaccess issue with Apache 2.0.59

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey, I'm using Apache 2.0.59 and I'm running into a bit of an issue here. I just can't seem to get the RewriteEngine command to work in .htaccess. I can get the other .htaccess directives (DirectoryIndex, password, etc) to work but not this. I have mod_rewrite.c in my list when I do httpd -l so I'm assuming I have the module installed.

Here are the two entries I've tried but can't seem to get working.

Here I want to redirect anyone who types in that domain to the tripod site. (Client request)
RewriteEngine On
RewriteCond %{HTTP_HOST} ^nwdyc.org [NC]
RewriteCond %{HTTP_HOST} ^www.nwdyc.org [NC]
RewriteRule ^(.*)$ http://nwdyckids.tripod.com/ [R,L]

Here I was just trying to make the damn thing see my IP address and move me over to yahoo.
RewriteEngine on
RewriteCond %{REMOTE_ADDR} ^221.216.69.25$
RewriteRule ^(.*)$ http://www.yahoo.com [L]

Neither of these seem to work. Is there something I'm doing wrong?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux