[OSM-talk] [OT] mod_rewrite

Nick Whitelegg nick at hogweed.org
Wed Dec 12 21:47:04 GMT 2007


Hello everyone,

Am trying to set up a mod_rewrite rule to map

http://newforest.free-map.org.uk/

to 

http://www.free-map.org.uk/newforest/

According to various things I've read this ought to do it :

RewriteCond %{HTTP_HOST} ^http://newforest.free-map.org.uk%$
RewriteRule ^(.*)$ http://www.free-map.org.uk/newforest/$1

However this does not work - I get the error "can't find host 
newforest.free-map.org.uk". Is there something else I need to configure to 
say that the host newforest.free-map.org.uk is the same as 
www.free-map.org.uk?

Thanks,
Nick




More information about the talk mailing list