[OSM-talk] [OT] mod_rewrite
Andreas Kemnade
andreas at kemnade.info
Wed Dec 12 22:23:48 GMT 2007
On Wed, 12 Dec 2007 21:47:04 +0000
Nick Whitelegg <nick at hogweed.org> wrote:
>
> 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
If that rule is in a section which applies to newforest.free-map.org
vhost (like when the rule is in the default vhost section), then
you are done with apache configuration. I have done these kind
of rewrites several times.
You can, of course, create an extra vhost entry for newforest.free-map.org
and put the rewrite there.
But...
It looks like newforest.free-map.org.uk is not resolvable.
So you have to fiddle with your dns zone configuration and add
an entry for *.free-map.org.uk or for newforest.free-map.org.uk.
More information about the talk
mailing list