Sorry about that, I don't know how to stop the message composer thing on this site from automatically sticking url tags around anything "www".
Thanks for your rapid replies, much appreciated.
Perhaps it might help if I explain my reasons for wanting to do this:
I have rented space on a linux web server.
It is not possible to change the webserver options.
I have a domain:
www.mydomain.com
I would like to set up a subdomain:
sub.mydomain.com
The URLs are resolved as follows:
www.mydomain.com points to the server-side directory
./main.
sub.mydomain.com points to
./sub.
What I'd like to do is this:
./sub points to
./main/sub (by whatever mechanism).
I have some PHP code (call it
myscript.php) in
./main which (among other things) writes XML and HTML documents to
./main/sub (from a normal HTTP request from a client) such that they are accessible via
sub.mydomain.com (i.e. via
./sub). Thinking about the security implications, I want
./sub to have read-only permissions, whereas
./main/sub must have rwxr-xrwx permissions at least in order for
myscript.php to be able to write to
./main/sub.
Any additional advice much appreciated
Thanks,
Mike.