I have a site www.mysite.com.
I have 3 subdomains sub1.mysite.com, sub2.mysite.com and sub3.mysite.com.
sub3.mysite.com is password protected.
All pages end with .php (ie index.php)
I use the following code:
<?php
include("inc23.inc");
?>
I find that I will require some of the same includes in more than one subdomain.
Can I do the following?
1) Create a subdomain called resources.mysit.com with 3 folders - images, includes and stylesheets
and use
A.
<?php
include("resources.mysit.com/includes/ inc23.inc");
?>
B.
<link rel="stylesheet" type="text/css" href="resources.mysit.com/stylesheets/stylesheetraw.css" /> Instead of
<link rel="stylesheet" type="text/css" href="stylesheetraw.css" />
C.
In my style sheet use
#toparea {background-image: url(resources.mysit.com/images/images/gs1.gif); etc instead of
#toparea {background-image: url(images/gs1.gif);
D
do I use http://
Since I have an absolute address instead of a relative one, I assume it doesn't matter what's where
E
Does the fact that one of my subdomains is password protected complicate anything?
Thank you