[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:


	ServerName localhost
	DocumentRoot C:/Apache/Apache2/htdocs/

	ServerName www.sandpit.co.uk
	DocumentRoot C:/Apache/Apache2/htdocs/sandpit/

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?



More information about the thelist mailing list