Hi Terry,

You might have sorted this by now...

> Our IP Address: -> Web address 1 -> Top level content
>                 -> Web address 2 -> /sub-directory    -> Sub-domain 1
>                 etc.

Stephen's pointed you in what's probably the best direction, Apache
configuration and virtual hosts, but I'm a bit confused what you're
after.

You've a bunch of domain names, all with DNS A records of 141.0.35.52,
e.g. www.spherea-technology.co.uk.  You want
http://www.spherea-technology.co.uk to serve content that's currently
visible at
http://www.spherea-technology.co.uk/SphereaTechnology/Index.htm and
likewise for all the other child companies.  The URL visible in the
browser should remain as the nicer looking domain name, so you don't
want to re-direct the browser to the cruftier URL.

Should the parent company URL that is the root content served by the
webserver have access to the child-company subdirectories?  Or are they
just an artifact.  Google's not too keen on identical content being
repeated so you might want to remove it from the parent.

> Stephen wrote:
> > It's hard to give pros and cons without knowing a bit more about the
> > site, but by the sounds of it (serving different content depending
> > on URL), mod-rewrite should be able to handle that. You may need to
> > look into 'virtual hosts' if the base address is different, but i
> > think a sub-domain can be configured inside the basic web server
> > config if necessary.

I'd go for virtual hosts, including for the parent company, given all
the domains are different and not subdomains in the normal DNS sense,
but rather different domains for child companies.  Come to that, why
does the child-company content remain as subdirectories of the parent
and not peers, one per website?

Have the first `<VirtualHost *:80>' be a catch all for when the
request's Host header doesn't match any ServerName or ServerAlias and
have it `Redirect 404 /', otherwise bots that approach giving any old
domain name will start crawling the whole site each time.

Consider setting up DNS for spherea-technology.co.uk so it also accesses
the same web server;  many folk try the www-less version these days.

Cheers, Ralph.

-- 
Next meeting:  Bournemouth, Tuesday, 2015-02-03 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread on mailing list:  mailto:[email protected]
How to Report Bugs Effectively:  http://goo.gl/4Xue

Reply via email to