Forum Moderators: phranque

Message Too Old, No Replies

International versions of sites

how is the best way they can access shared files

         

basenotes

12:38 pm on Apr 18, 2006 (gmt 0)

10+ Year Member



Hi

I'm trying to set up a website which will require international versions of it.

The idea would be to set up subdomains ie:

us.example.com
uk.example.com
ca.example.com

They would all be on the same [apache] server, and would need to access a cgi folder which would be accessible to all international sites.

I would like to know the best way of doing this in your experience.

At the moment, the subdomains correspond to:
example.com/us
example.com/uk
example.com/ca

but I want them to all access example.com/cgi-bin without losing the country subdomain, and without placing a cgi-bin in each of the sites.

I hope this makes sense, I can clarify if required as I probably haven't made it as clear as I'd like.

SteveLetwin

3:10 pm on Apr 18, 2006 (gmt 0)

10+ Year Member



If you're using Linux (or other *nix), you could add symlinks for all the subdomains pointing to the one real cgi-bin directory. (Though there might be issues with following symlinks with cgi-bin that a more knowledgeable member may bring up.)

If you don't want to go that route, mod_rewrite should be able to fix you up, that is if you have access to mod_rewrite.

[httpd.apache.org...]

basenotes

7:38 am on Apr 19, 2006 (gmt 0)

10+ Year Member



Thanks - I think playing around with mod_rewrote will do it

Thanks