Jump to content

GoogleBot and .htaccess


Mitza

Recommended Posts

Hey.

 

I have a blog (http://blog.mitza.org) and I made a php script that adds a border and my name to all the photos. Since Google doesn't crawn images with the .php extension (the extension was something like: /image.php?img=test.jpg&type=3), I wrote a simple .htaccess containing this (well, that part I want to present):

RewriteRule ^foto/([a-z0-9-_]*.jpg) image.php?img=$1 [L,NC]
RewriteRule ^foto/i/([a-z0-9-_]*.jpg) image.php?img=$1&type=i [L,NC]
RewriteRule ^foto/s/([a-z0-9-_]*.jpg) image.php?img=$1&type=s [L,NC]

 

So, in my blog posts, I added images with link like: /foto/test.jpg (for the first line from the code tag). My question is if GoogleBot sees that images like some normal images. I tryied search on Google and found nothing from the posts with the new .htaccess (images "locate" in /foto/), but found images that really exist in a public directory (some of my old posts). I also installed a statistics plugin to see if Google visits my page and it/he does.

 

Can anyone light me?

Thanks and I hope that this the write section to post this type of problem.

Link to comment
https://forums.phpfreaks.com/topic/112484-googlebot-and-htaccess/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.