Wrox Programmer Forums
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 13th, 2004, 03:12 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default ./ and ../ jumps

i create web-pages referring files in my root using ./ and ../
i don't want2use http://~ in my code.
also i don't want external sites use my files using http://~

this works fine.
but i can't jump to sub_domain and addon_domain folders to outside folders using ./ and ../
2use http://~ is only way then.

so i want2move freely among all folders in ./www ( root ) using ./ and ../ including folders of all -n- different sub_domain and addon_domain

i've other problems based on above, also2solve further, after this basic one solved. so i want answers in detail, please.

i'll hope2add further2this topic soon.
__________________
`~@#\^%&*/\.<.\/-|+|_!:;..=?>
PHP, SEO | anshul shrivastava | mediasworks.org | FB
 
Old July 13th, 2004, 03:27 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Not sure about what you are saying here. ./ refers to the current directory and ../ to the directory above, not the document root. That would be / .

If I understand correctly you want to go "up" above the document root for the current domain and then down into the document root of another domain (or subdomain, same thing). That can't be done using this URL scheme. You need to use a fully qualified URL, including the domain name.

(o<
//\ =^..^=
 
Old July 14th, 2004, 01:06 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default

thank u4providing information. u've understood what i meant.
can i use http://~ to jump outside of addon_domain folder ?

( many folders are in 'www' folder including sub_domains,
  addon_domains etc. i just wanted to move freely among all folders
  of 'www' using ./ and ../ and within 'www' )
if this is not fulfilled i've2force myself using http://~

one more question:
what scheme u follow2protect ur .gif, .css, .jpeg etc. from usage
by external people in their web-page-code ?
and also what u do when u want to let external domains and also ur sub-domain users to use some particular file of ur folders.

i've .htaccess file in control-panel. what is it ?
( i don't understand its code )
thank u again.

note:
-----
i'd initiated this topic to know and force access-rights effectively.
 
Old July 18th, 2004, 08:37 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

I guess one could describe .htaccess as an Apache configurations file on directory level. What you put in it is good for the directory it's in and the directories below it. A directive in one .htaccess file can be overridden by another .htaccess lower down in the directory structure. Say you specify a charset in your main .htaccess and put in your root directory. That will be good for your whole site but if you want another charset for just one directory you can specify that in a htaccess file in that directory.

For anti-leech this may be of help.
http://www.allmyfaqs.com/faq.pl?Prevent_bandwidth_theft

(o<
//\ =^..^=









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.