I've been reading lots of forum entries and trying lots of syntax variations after starting with the basic example given in the Apache mod_rewrite docs, however I simply cannot get all requests to my old domain to redirect to the new domain. Here is some (perhaps) useful info from (a) my httpd.conf file, (b) my RewriteLog after an attempt and (c) the browser errors. Thanks for any help with this. As with every other troubled poster in these forums, it's driving me NUTS!
Apache/1.3.27 running on RedHat v.7.2
==httpd.conf Entries of Interest:==
...
DocumentRoot /usr/local/apache/sites/newdomain
UseCanonicalName On
NameVirtualHost *
ServerName newdomain.com
...
<VirtualHost *>
ServerName www.olddomain.com
ServerAlias olddomain.com *.olddomain.com
ServerAdmin me@olddomain.com
DocumentRoot /usr/local/apache/sites/olddomain
ErrorDocument 404 http://www.olddomain.com/
ErrorLog logs/error_old.log
Options +FollowSymLinks
RewriteLog /var/log/mod_rewrite.log
RewriteLogLevel 5
RewriteEngine on
RewriteRule ^/(.*)$ http://www.newdomain.com/$1 [L]
</VirtualHost>
==/var/log/mod_rewrite.log:==
[www.olddomain.com/sid#8139ed4][rid#81e9064/initial] (2) init rewrite engine with requested uri /
[www.olddomain.com/sid#8139ed4][rid#81e9064/initial] (3) applying pattern '^/(.*)$' to uri '/'
[www.olddomain.com/sid#8139ed4][rid#81e9064/initial] (2) rewrite / -> http://www.newdomain.com/
[www.olddomain.com/sid#8139ed4][rid#81e9064/initial] (2) implicitly forcing redirect (rc=302) with http://www.newdomain.com/
[www.olddomain.com/sid#8139ed4][rid#81e9064/initial] (1) escaping http://www.newdomain.com/ for redirect
[www.olddomain.com/sid#8139ed4][rid#81e9064/initial] (1) redirect to http://www.newdomain.com/ [REDIRECT/302]
==Results In Error:==
==Firefox:
The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
* This problem can sometimes be caused by disabling or refusing to accept cookies.
==MSIE:
(Keeps flickering and never loads)