Results 1 to 10 of 10

Thread: Wrong destination of image result

  1. #1
    Seawitchartist's Avatar
    Join Date
    Apr 2006
    Location
    London
    Posts
    226
    Rep Power
    12

    Wrong destination of image result

    I've discovered that some of my search term results on google images do not go to the page on my site with that image but to my site image index, not much use to me. Can this be prevented?
    Never trust statistics unless you fiddled the figures yourself!

    www.seawitchartist.com

  2. #2
    target='_blank' snowmaker's Avatar
    Join Date
    Nov 2002
    Location
    West Virginia
    Posts
    3,457
    Rep Power
    22
    Welcome back George, so nice to see you again. I have looked at your site, and it's source code. Apart from some of the MSO and FrontPage code (which I didn't really understand) added by those programs, I couldn't see anything obvious to cause such a problem. I didn't examine your site, or the source code, too deeply though. So it's possible I missed the cause. Could you post the search string you use for the Google search, and any actions you take there. That would help me duplicate the issue.
    -bruce /* somdcomputerguy */
    'If you change the way you look at things, the things you look at change.'

  3. #3
    Seawitchartist's Avatar
    Join Date
    Apr 2006
    Location
    London
    Posts
    226
    Rep Power
    12
    Hello again Snowmaker!
    OK..search term was 'lifeboat tea' ....go to images and this image in the link here you will see in the top row...it leads on my index files..

    lifeboat-tea-t.jpg
    Never trust statistics unless you fiddled the figures yourself!

    www.seawitchartist.com

  4. #4
    target='_blank' snowmaker's Avatar
    Join Date
    Nov 2002
    Location
    West Virginia
    Posts
    3,457
    Rep Power
    22
    Either clicking on the image itself, or the little 'Visit page' button next to it takes you to this page - http://www.seawitchartist.com/images/china-tea-chest/, which I assume is what you don't want. Google is getting that image from the URL listed above, so that could be why it just goes to that page instead of the page you want it to.
    -bruce /* somdcomputerguy */
    'If you change the way you look at things, the things you look at change.'

  5. #5
    Seawitchartist's Avatar
    Join Date
    Apr 2006
    Location
    London
    Posts
    226
    Rep Power
    12
    I wonder if I can take that page down or would it bring the plot down?
    Never trust statistics unless you fiddled the figures yourself!

    www.seawitchartist.com

  6. #6
    target='_blank' snowmaker's Avatar
    Join Date
    Nov 2002
    Location
    West Virginia
    Posts
    3,457
    Rep Power
    22
    Well, the 'page' is really only a directory listing of some image files, and some others too. You can't really take the page down, but a .htaccess file with the proper command can prevent that 'page' from being displayed. There is a .htaccess generator in OPS.
    -bruce /* somdcomputerguy */
    'If you change the way you look at things, the things you look at change.'

  7. #7
    target='_blank' snowmaker's Avatar
    Join Date
    Nov 2002
    Location
    West Virginia
    Posts
    3,457
    Rep Power
    22
    Upon inspection, I don't know if the .htaccess editor in OPS can do this. This is the line that you would want in a .htaccess file in that directory to prevent the file list
    Code:
    Options -Indexes
    Note however, this will not disable or change the link that Google has on their results page. Further redirection commands may lead to the page you want displayed when a particular link is clicked on. Let me go thru some old .htaccess code snippets I have and I'll see what I can come up with.
    -bruce /* somdcomputerguy */
    'If you change the way you look at things, the things you look at change.'

  8. #8
    Seawitchartist's Avatar
    Join Date
    Apr 2006
    Location
    London
    Posts
    226
    Rep Power
    12
    Thank you for this Snowmaker!
    Never trust statistics unless you fiddled the figures yourself!

    www.seawitchartist.com

  9. #9
    target='_blank' snowmaker's Avatar
    Join Date
    Nov 2002
    Location
    West Virginia
    Posts
    3,457
    Rep Power
    22
    I don't know if you can (I mean, no offense intended, know how to) edit your .htaccess file. A line like this will redirect (hence the name of the command..) from the first argument URL to the second argument page. This may be not exactly what you want, and several lines are OK for multiple redirection places. Note the .htaccess file in this case should be in your DOC Root directory (htdocs), not in the images sub-dir or any sub-dirs of that.
    -bruce /* somdcomputerguy */
    'If you change the way you look at things, the things you look at change.'

  10. #10
    target='_blank' snowmaker's Avatar
    Join Date
    Nov 2002
    Location
    West Virginia
    Posts
    3,457
    Rep Power
    22
    Quote Originally Posted by Seawitchartist View Post
    Thank you for this Snowmaker!
    You bet man! I hope the code that I posted above helps you in your situation.
    -bruce /* somdcomputerguy */
    'If you change the way you look at things, the things you look at change.'

Posting Permissions

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