[OSM-talk] [OT] mod_rewrite
David Groom
reviews at pacific-rim.net
Fri Dec 14 02:17:37 GMT 2007
----- Original Message -----
From: "Nick Whitelegg" <nick at hogweed.org>
To: <talk at openstreetmap.org>
Sent: Wednesday, December 12, 2007 9:47 PM
Subject: [OSM-talk] [OT] mod_rewrite
>
> 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
>
I assume this will be placed in root directory of
http://newforest.free-map.org.uk/
Try
RewriteEngine On
RewriteRule ^(.*)$ http://www.free-map.org.uk/newforest/$1 [L]
but I'm no expert :)
David
More information about the talk
mailing list