[thelist] Enabling mod_rewrite
fstorr
fffrancis at fstorr.demon.co.uk
Mon Aug 30 15:25:58 CDT 2004
Hi all
I've got Apache2 running on XP Pro and am trying to get mod_rewrite
working locally, which no luck. I've got this in my httpd.conf file:
NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1>
ServerName localhost
DocumentRoot C:/Apache/Apache2/htdocs/
</VirtualHost>
<VirtualHost 127.0.0.1>
ServerName www.sandpit.co.uk
DocumentRoot C:/Apache/Apache2/htdocs/sandpit/
</VirtualHost>
and in my .htaccess file just this:
RewriteEngine on
RewriteRule ^old\.html$ new.html
When I try this on my host's account, it works like a charm. When I try
it locally I always to to old.html and never new.html. I'm guessing
there's something that I haven't configured correctly. Can anyone help?
Regards
F
More information about the thelist
mailing list