<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1019622" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1019622</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/domain-dependent-file-loading#comment-1118124</link>
    <description> &lt;p&gt;It depends. If you&#039;re using a serverside script then you can call any file on the server if you have access to it otherwise the file needs to be inside your web directory.&lt;/p&gt;
&lt;p&gt;If you want to go back one step you can use &quot;../&quot;. For example, if you&#039;re in mysite.com/folder1/ and you want to link to mysite.com/file.html you can simply link to &quot;../file.html&quot;&lt;/p&gt;
 </description>
     <pubDate>Mon, 11 Nov 2002 05:14:29 +0000</pubDate>
 <dc:creator>zollet</dc:creator>
 <guid isPermaLink="false">comment 1118124 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/domain-dependent-file-loading#comment-1118123</link>
    <description> &lt;p&gt;&lt;strong&gt;Yup.  It worked perfectly.  Thanks.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;BTW, let me try to sneak another question in here without creating a new thread.  Dealing with the same situation of two domains on one host, is there a way to call a file in another folder (either up a few folders, or over a few folders - but not directly beneath) without using the full address?&lt;/p&gt;
&lt;p&gt;Like if you&#039;re in &lt;a href=&quot;http://www.mysite.com/folder1/&quot; title=&quot;www.mysite.com/folder1/&quot;&gt;www.mysite.com/folder1/&lt;/a&gt; and you want to link to  i a subfolder of folder 1 you can just type in the end part of the url &quot;subfolder1/file.html&quot;.  But what if the file is higher in the tree structure, or worse- on another branch?  The only way I know how to get to &lt;a href=&quot;http://www.mysite.com/folder2/subfolder2&quot; title=&quot;www.mysite.com/folder2/subfolder2&quot;&gt;www.mysite.com/folder2/subfolder2&lt;/a&gt; is to type the whole thing in starting with http://   Is there another way in html? (like backslash or something else that says go to top first then go down this tree branch)&lt;/p&gt;
 </description>
     <pubDate>Mon, 11 Nov 2002 05:01:09 +0000</pubDate>
 <dc:creator>fifeclub</dc:creator>
 <guid isPermaLink="false">comment 1118123 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/domain-dependent-file-loading#comment-1117944</link>
    <description> &lt;p&gt;Hehe. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt; Give it a try and let me know how it works.&lt;/p&gt;
 </description>
     <pubDate>Fri, 08 Nov 2002 18:04:59 +0000</pubDate>
 <dc:creator>zollet</dc:creator>
 <guid isPermaLink="false">comment 1117944 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/domain-dependent-file-loading#comment-1117941</link>
    <description> &lt;p&gt;awesome! thanks.  That looks like it will work exactly like what I need.&lt;/p&gt;
&lt;p&gt;:jump:&lt;/p&gt;
 </description>
     <pubDate>Fri, 08 Nov 2002 17:58:14 +0000</pubDate>
 <dc:creator>fifeclub</dc:creator>
 <guid isPermaLink="false">comment 1117941 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/domain-dependent-file-loading#comment-1117929</link>
    <description> &lt;p&gt;Mike, I know and that&#039;s what I meant. Here&#039;s a sample code of what I meant...&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;preg_match&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;/wife\\.com/i\&quot;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SERVER&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;HTTP_HOST\&quot;])) {&lt;br /&gt;&amp;nbsp; include(\&quot;header_wife.php\&quot;);&lt;br /&gt;} else {&lt;br /&gt;&amp;nbsp; include(\&quot;header_husband.php\&quot;);&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 08 Nov 2002 16:31:17 +0000</pubDate>
 <dc:creator>zollet</dc:creator>
 <guid isPermaLink="false">comment 1117929 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/domain-dependent-file-loading#comment-1117925</link>
    <description> &lt;p&gt;You are making what you want clear, well I understand you any way, but I don&#039;t know how to do it!&lt;/p&gt;
 </description>
     <pubDate>Fri, 08 Nov 2002 15:26:45 +0000</pubDate>
 <dc:creator>The Webmistress</dc:creator>
 <guid isPermaLink="false">comment 1117925 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/domain-dependent-file-loading#comment-1117924</link>
    <description> &lt;p&gt;Oh, it&#039;s already set up to keep the root domain consistant in the address bar.  What I need is for the page or server to recognize that URL and to load file A if it&#039;s from domain #1 and load file B if it&#039;s from domain #2.  (I hope I&#039;m explaining myself right)&lt;/p&gt;
&lt;p&gt; (and if this proves to be a php only issue, TWF can move it to the appropriate category)&lt;/p&gt;
 </description>
     <pubDate>Fri, 08 Nov 2002 15:17:40 +0000</pubDate>
 <dc:creator>fifeclub</dc:creator>
 <guid isPermaLink="false">comment 1117924 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/domain-dependent-file-loading#comment-1117922</link>
    <description> &lt;p&gt;In PHP, try the below variable. If I&#039;m not mistaking, it will return the domain name in address bar.&lt;/p&gt;
&lt;p&gt;$_SERVER[&quot;HTTP_HOST&quot;]&lt;/p&gt;
 </description>
     <pubDate>Fri, 08 Nov 2002 15:05:03 +0000</pubDate>
 <dc:creator>zollet</dc:creator>
 <guid isPermaLink="false">comment 1117922 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
