Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

Does Google Index Images with Rewritten URLs (no file extensions)

         

skunker

4:50 pm on Nov 9, 2007 (gmt 0)

10+ Year Member



Hey folks,
I am building a photo gallery and have URL rewrite working so my Urls are like this: domain.com/cat/photo-subject

This page displays a photo with a short description about it. However, when viewing the source code, I noticed that there is no "jpg" filename anywhere.

Is this bad for Google Images? Will they not be able to tell that I have a big photo on this page?

tedster

9:47 pm on Nov 9, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If the jpg isn't in the source code, how is it being sent to user agent? Is it a script?

skunker

10:12 pm on Nov 9, 2007 (gmt 0)

10+ Year Member



I am not that technically inclinded, but this is how my image is being shown:


<img src="/d/3504-2/egyptian-f16d-hangar" width="500" height="400" alt="Egyptian F-16D in hangar" longdesc="Hardened Aircraft Shelter with a F-16D. Completed in February 1996. Gianaclis Air Base, Egypt."/>

There is no "jpg" anywhere. I am using an open source photo gallery system called GALLERY2.

tedster

10:21 pm on Nov 9, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well, you are using a standard img element with a src attribute - it's just that the file extensions are being rewritten, so I assume no jpg, gif or png extensions are showing.

I can't say 100% for sure, but I think google will still request your images from your server and index them - you can see more definitively by lookingin your server logs. My assumption is that the <img> element is the key, not the file extension.

If in doubt (and there is some room for doubt here, technology being the strange bird that is is) I would not rewrite the urls for images when image search is important. Get a tecchie to help you as needed.

skunker

11:17 pm on Nov 9, 2007 (gmt 0)

10+ Year Member



Hey ted thanks for that info.

I can easily rename the filenames and append a 'jpg' to it so it looks like this when VIEWING SOURCE code:


<img src="/d/3504-2/egyptian-f16d-hangar.jpg" width="500" height="400" alt="Egyptian F-16D in hangar" longdesc="Hardened Aircraft Shelter with a F-16D. Completed in February 1996. Gianaclis Air Base, Egypt."/>

Notice the img srce now prints the filename with the 'jpg' extension.

However, interestingly, now my photo page URL is: blah/egyptian-f16d-hangar.jpg.html

Notice the 'jpg.html' extension. This shouldn't be harmful, is it?

Thanks again.

g1smd

12:56 am on Nov 11, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



A minor amendment to your script code should be able to fix that.

skunker

1:04 am on Nov 11, 2007 (gmt 0)

10+ Year Member



But, do u think it's bad?

skunker

2:32 am on Nov 11, 2007 (gmt 0)

10+ Year Member



Sorry, I had gone away and came back to realize that my post's time limit has now expired and I can no longer edit the above message.

What I wanted to ask was whether I have any reason to be concerned about my URLs ending with "jpg.html"? I did a Google search and having a hard time finding URLs that contain that kind of extension.

g1smd

4:03 am on Nov 11, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Whether it is good or bad isn't really an issue (though I personally would avoid having those) because it is likely that one edit to your script will make it a non-issue.