[OSM-talk] [OT] mod_rewrite

mike mike at bristolbeat.co.uk
Fri Dec 14 11:01:09 GMT 2007


Did you set up the DNS for the newforest.free-map.org.uk so that it
resolves to the address of your web server?

$ping newforest.free-map.org.uk
ping: unknown host newforest.free-map.org.uk

Until you do that the request will never get to your box, so the
apache rule is not going to run.

mike

> > 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?




More information about the talk mailing list