Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Page 1 of 2 12 LastLast
Results 1 to 15 of 16

This is a discussion on ok just a quick question in the Shared & Semi-Dedicated forum
Whenever i try to link to my subdomain of http://justdesserts.keepers-of-the-light.org/ my picture will not show up... however if you reverse that and do http://keepers-of-the-light.org/justdesserts the ...

  1. #1
    JPC Member
    Join Date
    Aug 2005
    Posts
    20

    ok just a quick question

    Whenever i try to link to my subdomain of

    http://justdesserts.keepers-of-the-light.org/

    my picture will not show up...

    however if you reverse that and do

    http://keepers-of-the-light.org/justdesserts

    the picture shows up just fine... how do i fix it so that my picture will show up the other way around? so that i dont have to enter it though /justdesserts... but the way i realy want to?

  2. #2
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,307
    Show us the html code for that page. (I'm gussing you reference the file as "/alliance3.JPG" or "../alliance3.JPG". Those wouldn't work for your subdomain. Post the code.)

  3. #3
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Looks like a '403' to me...

    http://justdesserts.keepers-of-the-l.../alliance3.JPG

    http://keepers-of-the-light.org/just.../alliance3.JPG

    Do you have something in your root .htaccess file that keeps ppl from hotlinking to your pics?

    Something like:
    Code:
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?keepers-of-the-light.org(/)?.*$     [NC]
    RewriteRule .*\.(gif|jpg|jpeg|bmp)$ - [F,NC]
    If so, you would need to add another directive to it:
    Code:
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?keepers-of-the-light.org(/)?.*$     [NC]
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?justdesserts.keepers-of-the-light.org(/)?.*$     [NC]
    RewriteRule .*\.(gif|jpg|jpeg|bmp)$ - [F,NC]
    Last edited by Vin DSL; 08-13-2005 at 10:43 PM.
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  4. #4
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Quote Originally Posted by Ron
    ...I'm gussing you reference the file as... "../alliance3.JPG"...
    Correctemundo mein Freund!
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  5. #5
    JPC Member
    Join Date
    Aug 2005
    Posts
    20
    umm... im not exactly sure how to show my code lol, i just did a simple html let me see if i can find the code sorry im fairly new at this and some things confuse the heck outta me

  6. #6
    JPC Member
    Join Date
    Aug 2005
    Posts
    20
    ok i think this is what you were looking for? im not sure this is what my code is now

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title></title>
    </head>
    <body>
    <center><a href="/phpb" target="_parent">
    <img height="600" alt="" src="../alliance3.JPG" width="800"></a></center>
    </body>
    </html>


    if it makes any difference im using dreamweaver to edit my pages.

  7. #7
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,307
    (I'm going to abbreviate your domain name to kotl.org)

    Here's your problem. The "../" in the src= part of the code is a relative reference. It means "the directory above where I am".

    When you visit www.kotl.org/jd "../alliance3.jpg" references the parent directory (/), file:allianc3.jpg That works.

    When you visit jd.kotl.org "../alliance3.JPG" tries to reference a higher directory, but there isn't any, so it ignores the "../" and looks for alliance3.JPG in the current directory. It's not there.

    When you visit www.kotl.org "../alliance3.JPG" tries to reference a higher directory, but there isn't any, so it ignores the "../" and looks for alliance3.JPG in the current directory, but this time, that is exactly where this pic happens to be. So you see it.

    You need to decide on the structure for your website. If you want to be able to reference pics that are outside of the jd.kotl.org subdirectory, you will have to completely qualify the pathname, that is you'll give a complete URL in the src= parameter.

    Change the src= to src="http://www.kotl.org/alliance3.JPG", and it will always work. However, you might want to put all of your graphics into a subdirectory, say /images, so that there's a little structure to your site. In that case, your src= would be src="http://www.kotl.org/images/alliance3.JPG"

    Goodluck.

  8. #8
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,307
    If I had looked at the source, I would have seen that code and saved some time.... stupid me. I just looked at the properties of the pics. Next time, I'll view source before I ask someone to post it. How stupid can I be? :shrug:

  9. #9
    JPC Member
    Join Date
    Aug 2005
    Posts
    20
    hmm i tried that... and its a no go.. it still will not show my picture and i already had my picture in /images

    so i tried to put it at src="http://www.kotl.org/images/alliance3.JPG" and for some reason it still did not work... it would show the outline of how big my pic is... but not show the pic itself... have i done something strange? or did i mess something up somehow?

    basically dreamweaver allows me to test it out before i publish it... and i try to save it and it will not pull the picture up unless i look at my website with www.keepers-of-the-light.org/justdesserts instead of www.justdesserts.keepers-of-the-light.org
    Last edited by mommykithana; 08-14-2005 at 12:07 AM.

  10. #10
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,307
    Finally, you probably don't want to create subdomains that need to use too many resources of the main domain.

    Subdomains are like little seperate websites. They are used when a section of the site is really self contained.

    For instance, a forum might be at forum.domain.com... all the files the forum needs are in that structure on the server disk, that is /home/<user>/www/forum/everything-here-and-below
    A self-contained site about sheepdogs on a site about all sorts of dogs might be at
    sheepdog.dogs.com -- it wouldn't use pictures from the "master" dog site.

    It's just not really good programming practice to cross use resources between sites, unless you have a series of sites that are very similar and need common resources. That might be the case for you, I don't know.

    Just some food for thought.

    Good luck!

  11. #11
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,307
    Ya, well you gotta put the picture there, you know! If you can't amnipulate the location of the pics, drop the "/images" and you should be ok.

  12. #12
    JPC Member
    Join Date
    Aug 2005
    Posts
    20
    thanks for the help.. i guess ill just leave it like it is for now LOL i tried to load phpbb into the subdomain so that it would have everything there in its own little corner but once again, none of the pictures would show up for my forum. so i was stuck with making something like public_html/phpb and then just link to it as www.keepers-of-the-light.org/phpb so that it would go to the forum. not sure what im doing wrong but what im doing right now is working for now LOL again thanks soo much for the help

  13. #13
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,307
    If you right-click on the picture when it's showing and select "Properties", you'll see where the picture IS: http://www.keepers-of-the-light.org/alliance3.JPG

    Since this link doesn't work, but we KNOW that the pic is there, I'm not on Vin DSL's side in thinking there's hotlinking protection going on as well. Disabling hotlinking protection in your CPanel may help, but might break something else you may have installed... if anything.
    Last edited by Ron; 08-14-2005 at 12:14 AM.

  14. #14
    JPC Member
    Join Date
    Aug 2005
    Posts
    20
    i know thats the weird thing... when i saved it the other way around it doesnt work... i swear to you that this picture is in my /images folder LOL if i knew you better i would let you have access to my cpanel so you could see for yourself... i have no idea why its saying its just /alliance3.JPG when its actually in my /images O.o

  15. #15
    JPC Member
    Join Date
    Aug 2005
    Posts
    20
    Well, i tried to just put in the whole thing of www.kotl.org/alliance3.JPG and it wouldn't show up... so then i tried (triple checking) and making sure my pic was in images and then put /images/alliance3.JPG that didnt work.. so i just went back to ../alliance3.JPG and it worked... I have no idea what kind of backwards things ive done to my sight but you guys have been great in suggestions... lol but i think ill stick with this strange fix of mine for now LOL and stop searching google and everything else under the sun to see what ive done again thank you everyone for your help

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •