Well, DirectoryIndex works. So I'm assuming it is. I did put the
gibberish in and I got a 500 error, so it's back to troubleshooting.
John Schofield wrote:
First thing I would try is putting gibberish in your .htaccess file,
and see if you get an error when you load pages in the directory
containing the gibberish .htaccess file. If you don't get an error,
Apache isn't loading your .htaccess file.
If you DO get an error, you can take out the gibberish and continue
troubleshooting.
--JMS
On Jun 28, 2007, at 10:46 AM, Tom Ray [Lists] wrote:
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: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
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: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
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: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]