Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

symbolic links weirdness?

 
   Web Hosting and Web Master Forums (Home) -> Webmaster RSS
Next:  Best cheap UK 56K unlimited dial-up account?  
Author Message
noxwebxmasterx

External


Since: Aug 01, 2003
Posts: 23



(Msg. 1) Posted: Sun Aug 31, 2003 9:50 am
Post subject: symbolic links weirdness?
Archived from groups: alt>www>webmaster (more info?)

I browsed into:

http://www.tek-tips.com/gthreadminder.cfm/lev2/67/lev3/

....and discovered a very irritating bouncing popup window.
Nevertheless curious about its inner workings, I displayed the
source and learned that the .js file was at:

<script language="JavaScript" SRC="jsource.js" TYPE="text/javascript"></SCRIPT>

....so I enter 'jsource.js' at the end of the address to display
it in my browser, and get a 404 error. Bah!

I eventually find it waaaay back at:

http://www.tek-tips.com/jsource.js

Is all the extra stuff in the original address:

....gthreadminder.cfm/lev2/67/lev3/

done with symbolic links on a 'nix server? Other
possibilities?
(And please add your theory why anyone might want
to do this!)

Bemusidly,
m

 >> Stay informed about: symbolic links weirdness? 
Back to top
Login to vote
noxwebxmasterx

External


Since: Aug 01, 2003
Posts: 23



(Msg. 2) Posted: Sun Aug 31, 2003 10:13 am
Post subject: Re: symbolic links weirdness? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

m wrote:

 > I browsed into:
 >
<font color=purple> > <a style='text-decoration: underline;' href="http://www.tek-tips.com/gthreadminder.cfm/lev2/67/lev3/</font" target="_blank">http://www.tek-tips.com/gthreadminder.cfm/lev2/67/lev3/</font</a>>
 >
 > ...and discovered a very irritating bouncing popup window.
 > Nevertheless curious about its inner workings, I displayed the
 > source and learned that the .js file was at:
 >
 > <script language="JavaScript" SRC="jsource.js"
 > TYPE="text/javascript"></SCRIPT>
 >
 > ...so I enter 'jsource.js' at the end of the address to display
 > it in my browser, and get a 404 error. Bah!
 >
 > I eventually find it waaaay back at:
 >
<font color=purple> > <a style='text-decoration: underline;' href="http://www.tek-tips.com/jsource.js</font" target="_blank">http://www.tek-tips.com/jsource.js</font</a>>
 >
 > Is all the extra stuff in the original address:
 >
 > ...gthreadminder.cfm/lev2/67/lev3/
 >
 > done with symbolic links on a 'nix server? Other
 > possibilities?
 > (And please add your theory why anyone might want
 > to do this!)
 >
 > Bemusidly,
 > m
 >
 >
....oh, and by the way, .cfm files turn out to be
something to do with ColdFusion...<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: symbolic links weirdness? 
Back to top
Login to vote
davidvb

External


Since: Jun 28, 2003
Posts: 114



(Msg. 3) Posted: Sun Aug 31, 2003 10:54 pm
Post subject: Re: symbolic links weirdness? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

m wrote:
 > I browsed into:
 >
<font color=purple> > <a style='text-decoration: underline;' href="http://www.tek-tips.com/gthreadminder.cfm/lev2/67/lev3/</font" target="_blank">http://www.tek-tips.com/gthreadminder.cfm/lev2/67/lev3/</font</a>>
 >
 > ...and discovered a very irritating bouncing popup window.
 > Nevertheless curious about its inner workings, I displayed the
 > source and learned that the .js file was at:
 >
 > <script language="JavaScript" SRC="jsource.js"
 > TYPE="text/javascript"></SCRIPT>
 >
 > ...so I enter 'jsource.js' at the end of the address to display
 > it in my browser, and get a 404 error. Bah!
 >
 > I eventually find it waaaay back at:
 >
<font color=purple> > <a style='text-decoration: underline;' href="http://www.tek-tips.com/jsource.js</font" target="_blank">http://www.tek-tips.com/jsource.js</font</a>>
 >
 > Is all the extra stuff in the original address:
 >
 > ...gthreadminder.cfm/lev2/67/lev3/
 >
 > done with symbolic links on a 'nix server? Other
 > possibilities?
 > (And please add your theory why anyone might want
 > to do this!)

As suspected, this is the problem (in the HTML source):
<base HREF="http://www.tek-tips.com/">

Basically, this indicates to the browser that all relative links are
relative to the root directory of the domain.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: symbolic links weirdness? 
Back to top
Login to vote
noxwebxmasterx

External


Since: Aug 01, 2003
Posts: 23



(Msg. 4) Posted: Sun Aug 31, 2003 10:54 pm
Post subject: Re: symbolic links weirdness? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

David Venn-Brown wrote:

 >
 > As suspected, this is the problem (in the HTML source):
 > <base HREF="http://www.tek-tips.com/">
 >
 > Basically, this indicates to the browser that all relative links are
 > relative to the root directory of the domain.
 >
Thanks, David,I somehow missed that line when reading the source.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: symbolic links weirdness? 
Back to top
Login to vote
blogan

External


Since: Jun 30, 2003
Posts: 285



(Msg. 5) Posted: Mon Sep 01, 2003 2:55 am
Post subject: Re: symbolic links weirdness? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"m" <noXwebxmasterx.DeleteThis@mbxstevensx.com> wrote in message
news:6eh4b.2931$Lk5.2882@newsread3.news.pas.earthlink.net...
 > m wrote:
 >
  > > I browsed into:
  > >
<font color=green>  > > <a style='text-decoration: underline;' href="http://www.tek-tips.com/gthreadminder.cfm/lev2/67/lev3/</font" target="_blank">http://www.tek-tips.com/gthreadminder.cfm/lev2/67/lev3/</font</a>>
  > >
  > > ...and discovered a very irritating bouncing popup window.
  > > Nevertheless curious about its inner workings, I displayed the
  > > source and learned that the .js file was at:
  > >
  > > <script language="JavaScript" SRC="jsource.js"
  > > TYPE="text/javascript"></SCRIPT>
  > >
  > > ...so I enter 'jsource.js' at the end of the address to display
  > > it in my browser, and get a 404 error. Bah!
  > >
  > > I eventually find it waaaay back at:
  > >
<font color=green>  > > <a style='text-decoration: underline;' href="http://www.tek-tips.com/jsource.js</font" target="_blank">http://www.tek-tips.com/jsource.js</font</a>>
  > >
  > > Is all the extra stuff in the original address:
  > >
  > > ...gthreadminder.cfm/lev2/67/lev3/
  > >
  > > done with symbolic links on a 'nix server? Other
  > > possibilities?
  > > (And please add your theory why anyone might want
  > > to do this!)
  > >
  > > Bemusidly,
  > > m
  > >
  > >
 > ...oh, and by the way, .cfm files turn out to be
 > something to do with ColdFusion...
Why did you add the js stuff to the end of the address? Clearly from the
script lang declaration it is in the home dir.

Anything after the .com/ can be an absolute or a relative. It can also be
aliased so for example, if the js source file is in the home dir but is used
by pages from different places (dir levels) then in order to use the one
file (instead of having dupes all over the place) it is far more efficient
to alias the source file as in this case it could be

alias /jsource.js /usr/local/etc/httpd/htdocs/jsource.js
the first bit is the alias name which appears at the end of the url and the
second part is the real name telling the server where on the machine to find
the file.

So, any call by a page will find the file regardless where on the server the
calling file is located.

The above is on Unix. the dir structure in linux is a little different but
the principle is the same and is fairly standard way of doing things.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: symbolic links weirdness? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
text box with links - im trying to make a text box with links in the nav bar that scroll directly to the subject in the text box. for example: in the left nav bar i have contact info and in the body of the page i have a scolling text box... if one were to click contact on..

Links to other sites question - Just a quick question, is there any special steps that have to be followed before posting a link to another webpage? These are links to the homepages of other sites (no links to sub-pages that avoid warnings, etc.). No e-commerce is involved in either....

Question: Pinpointing Links from one page to another - I have an elementary question to you web authoring pros. I use Netscape Composer to write my pages. I know how to link to a graphic or text area within a page from within the same page. What I'd like to be able to do is be able to link to a specific area...

created a forum to exchange links with other websites - Hi, I've just created a forum where people can request to exchange links with other websites. Take a look at: http://members.lycos.nl/pht61/ Regards, Theo

Tracking clicks on external links - redir.pl problem - Hi, we host advertising on our site & have been using redir.pl script to track clicks on our advertiser's sites. This had been working fine until an advertiser told us that our site did not appear at all as a referrer in their WebTrends log analysis...
   Web Hosting and Web Master Forums (Home) -> Webmaster All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]