Forum Moderators: phranque

Message Too Old, No Replies

all subdomains to access same files

all subdomains to access same files

         

the little mermaid

4:14 am on Oct 2, 2009 (gmt 0)

10+ Year Member



hi to all

I have created many subdomains on my server, some 10 odd of them and I would be creating more of them. Some of the code is common to all my subdomains. With the current setting, I need to go to all these subdomains and make changes. Is it possible that I keep all my common files at one place and access them in my main domain as well as the subdomains. I am a php programmer but am not well versed with htaccess and all. So please if anyone can point me in the right direction.

Thanks

g1smd

7:33 am on Oct 2, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You need a 'rewrite' for that if those common files are being directly accessed from the web.

If the common files are being called from some other server-based script, and are being called by the script itself, then it simply needs to access it by using the internal server filepath instead.