View Full Version : ../ jump
anshul
07-18-2004, 08:48 PM
i want2refer files like .css, .js etc. from my sub_domains addon_domains
in code using ../ scheme; i don't wanna use fully qualified url ?
any1 has some suggestion ?
Antoniohawk
07-19-2004, 05:46 AM
I'm still not really sure of the problem that you're having, could you be a little more specific? Examples would be wonderful. :)
anshul
07-21-2004, 08:59 PM
actually i've not a strict-problem.
i explain what i wanna do:
let my website is mysite.com
let i've a subdomain name 'sub_domain1' [ sub_domain.mysite.com ]
subdomain folder 'sub_domain1' obviously is in 'www'
i've a folder css for style-sheets in likwwise in 'www'
in code of a page of sub_domain1 say 'mypage.htm' that resides in 'sub_domain1' folder, i write
<LINK href="../css/fonts.css ...............etc...........> does not work!!
<LINK href="http://mysite.com/css/fonts.css ...............etc...........>
but works.
so i wanna use ../ and ./ jumps instead of http://~ in code of all pages of
my sub_domains. i think i've clarified. ;)
Antoniohawk
07-21-2004, 09:25 PM
As of yet, I've never used relative links, but what I've just read [here (http://webmonkey.wired.com/webmonkey/99/39/index3a_page3.html)], it looks like you're doing it the right way. Could you perhaps link me to the page if it's on the web, or let me see a picture of the folder tree?
anshul
07-21-2004, 09:42 PM
no folder-structure is not on web.
all of relative-links r working as long i use it within a domain or sub_domain.
i can't jump out of 'domain' or 'sub_domain' folder without http://~
all folders r in 'www' or its synonym 'public_html'.
sub_domain folders r also there.
i m using apache -n- php; i guess solution lies in configuring .htaccess code.
this is not quick4me: a beginner to .htaccess file. anyway thanx 4ur consideration.
vBulletin® v3.8.2, Copyright ©2000-2010, Jelsoft Enterprises Ltd.