Results 1 to 10 of 10
  1. #1

    Pics in Bermuda Triangle!!! HELP!!!!

    I uploaded a site that was working fine in my old server, but now the GIF or JPEG or ANY OTHER PICTURE for that matter, refuses to show up on my page.
    Everything else works.
    I build and continue to add to this site with Dreamweaver CS and everything works during the test.
    I have all files in /public_html/ all under addon site ( checkthespot . com ).
    I can see the images fine when I put the link in IE. http: // www.checkthespot . com/images/ THEN images/BouncyBall_1.gif and so on, but when I open the page, the image does not load even though everything else (text, links etc) work fine.

    PLS HELP!!!

    I got this answer from "ISPUTRA", which made sence...
    I have this kind of problem a few years ago and it happen because i uploaded with ascii mode. Switch to binary mode and upload again fix my problem.


    SO I SEARCHED DREAMWEAVE CS AND FOUND THIS IN THE EXTENTIONS HELP MENU......
    Changing FTP mappings
    The FTPExtensionMap.txt file (Windows) and the FTPExtensionMapMac.txt file (Macintosh) map filename extensions to FTP transfer modes (ASCII or BINARY).

    Each line in each of the two files includes a filename extension (such as GIF) and either the word ASCII or the word BINARY, to indicate which of the two FTP transfer modes should be used when transferring a file with that extension. On the Macintosh, each line also includes a creator code (such as DmWr) and a file type (such as TEXT). When you download a file with the given filename extension on the Macintosh, Dreamweaver assigns the specified creator and file type to the file.

    If a file that you are transferring doesn't have a filename extension, Dreamweaver uses the BINARY transfer mode.

    Note: Dreamweaver cannot transfer files in Macbinary mode. If you need to transfer files in Macbinary mode, you must use another FTP client.

    The following example shows a line (from the Macintosh file) that indicates that files with the extension .html should be transferred in ASCII mode:

    HTML DmWr TEXT ASCII
    In both the FTPExtensionMap.txt file and FTPExtensionMapMac.txt file (Macintosh), all elements on a given line are separated by tabs. The extension and the transfer mode are in uppercase letters.

    To change a default setting, edit the file in a text editor.

    To add information about a new filename extension:
    1. Edit the extension-map file in a text editor.

    2. On a blank line, enter the filename extension (in uppercase letters) and press Tab.

    3. On the Macintosh, add the creator code, a tab, the file type, and another tab.

    4. Enter ASCII or BINARY to set an FTP transfer mode.

    5. Save the file


    It did not help me. I added the (.PHP tab BINARY) using WordPad and all I got was the text ".PHP BINARY" on the page itself! I also played around with the (EDIT/FORMAT, CODE PREFERENCES) on Dreamweaver. Changed it around from CR LF for Windows, CR for Macs and LF for Unix systems.
    I also made new pages (checkthespot . com/test.php, test2.php, test3.php) but had the same problem. I did notice that the htm pages did not show the ".HTML BINARY" like the PHP pages (test3.php)
    This is what the top part of the page looks like now:

    .PHP BINARY
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http: //www . w3 . org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http: // www . w3 . org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    body {

    (MINUS SPACES ON LINKS)

    Thanks for your help ppl...I'm pulling my hairs out over here!!!

  2. #2
    Join Date
    Oct 2002
    Location
    State of Disbelief
    Posts
    22,948
    If I visit with referrer logging turned off, I see it all. With it allowed, nothing.
    If you're blocking by referrer, that's your problem. If you're not deliberately doing so, you need to find out what's causing that.
    Last edited by bear; 04-19-2008 at 01:47 PM.
    Having problems, or maybe questions about WHT? Head over to the help desk!

  3. #3
    I didnt try it with Opera, but FF is not showing the gif files either.
    I redirected this site 2 days ago to point to Cpanel (my new host). U'd think that the new DNS has made its way around by now correct??
    Any sugestions??
    Thank you in advance

  4. #4
    Join Date
    Oct 2002
    Location
    State of Disbelief
    Posts
    22,948
    DNS is fine, as I was able to reach it by the domain name. something local to the page is redirecting based on referrer, it looks like. Check for the existience of an .htaccess file in the site's directories.
    Having problems, or maybe questions about WHT? Head over to the help desk!

  5. #5
    No htaccess. I never created one. I read about it at Cpanel and I see wut u were thinking. Wish it had been that easy. I'm stumped...am I just missing the little thing right in front of my nose??

  6. #6
    Join Date
    Oct 2002
    Location
    State of Disbelief
    Posts
    22,948
    Some servers hide "." files by default. If you create a blank file named ".htaccess" (the leading "." is important) in the parent directory on the server, can you "see" it in FTP when you connect? After uploading a blank .htaccess file, does the site work properly?
    Having problems, or maybe questions about WHT? Head over to the help desk!

  7. #7
    Found 2 .htaccess folders. One in the root folder and one in the addon (checkthespot.com) folder. I tryed playing with it and havent gotten anywhere. I need a your expertise Bear!

    PS...I owe u a beer. LoL

    The first one is in the root folder (main site) and the second one is in checkthespot.com

    Here are the files...

    .htaccess
    ASCII text
    RewriteEngine on

    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://accurateguys.eyeadore.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://accurateguys.eyeadore.com$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://checkthespot.eyeadore.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://checkthespot.eyeadore.com$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://eyeadore.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://eyeadore.com$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://jdstyles.eyeadore.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://jdstyles.eyeadore.com$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.accurateguys.eyeadore.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.accurateguys.eyeadore.com$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.checkthespot.eyeadore.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.checkthespot.eyeadore.com$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.eyeadore.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.eyeadore.com$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.jdstyles.eyeadore.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.jdstyles.eyeadore.com$ [NC]
    RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ http://checkthespot.com [R,NC]





    .htaccess
    ASCII text
    --------------------------------------------------------------------------------

    ASCII text RewriteEngine on

    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://accurateguys.eyeadore.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://accurateguys.eyeadore.com$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://checkthespot.eyeadore.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://checkthespot.eyeadore.com$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://eyeadore.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://eyeadore.com$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://jdstyles.eyeadore.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://jdstyles.eyeadore.com$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.accurateguys.eyeadore.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.accurateguys.eyeadore.com$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.checkthespot.eyeadore.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.checkthespot.eyeadore.com$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.eyeadore.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.eyeadore.com$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.jdstyles.eyeadore.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.jdstyles.eyeadore.com$ [NC]
    RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ http://checkthespot.com [R,NC]
    Last edited by n1tr0; 04-19-2008 at 07:19 PM.

  8. #8
    Join Date
    Oct 2002
    Location
    State of Disbelief
    Posts
    22,948
    Well, there's the problem(s).
    The last line in each is saying that if the referrer does NOT contain any of the ones listed above, give them the main page...with no images, since you're blocking them. Add two more lines:
    Code:
    RewriteCond %{HTTP_REFERER} !^http://checkthespot.com$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.checkthespot.com$ [NC]
    Actually, you should probably add this in (at the top of the list) instead:
    Code:
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?checkthespot.com(/)?.*$     [NC]
    Or you could remove the hotlink protection altogether by deleting these files.
    Last edited by bear; 04-19-2008 at 07:57 PM.
    Having problems, or maybe questions about WHT? Head over to the help desk!

  9. #9
    I deleted the awhole thing and left the file in there blank. It WORKED!!!!!

    Thank you very much Bear, and collect that beer when ur in the Rochester NY area Bro!
    Last edited by n1tr0; 04-19-2008 at 08:04 PM.

  10. #10

    I will try adding the lines u gave me, but if it doesnt work, I'll just delete it all and start from scratch now that I have all this added knowledge about .htaccess!!! (I was reading about .htaccess file...its a very useful one :-D

Posting Permissions

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