Ooops.
This line:
RewriteRule ^/$ /index.php [R=302]
Should have read:
RewriteRule ^/$ /index.php [R=30[red]1[/red]]
On my machine, the testing VirtualHost configuration reads:
<VirtualHost *:80>
ServerName linuxdev.fu
DocumentRoot /home/sites/test/html
RewriteEngine on
RewriteRule ^/$ /index.php [R=301]
</VirtualHost>
A telnet converstation reads:
GET / HTTP/1.1
Host: linuxdev.fu
HTTP/1.1 301 Moved Permanently
Date: Fri, 11 Mar 2005 21:08:10 GMT
Server: Apache/2.0.53 (Unix)
Location:
Content-Length: 309
Connection: close
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="
<hr>
<address>Apache/2.0.53 (Unix) Server at .... Port 80</address>
</body></html>
Connection closed by foreign host.
Want the best answers?
Ask the best questions!
TANSTAAFL!!