I don't know a whole lot about the intricacies of SEO so I was wondering if someone here could provide some insight to this problem.
When you use the php script timthumb on a website, it means images are referenced in the HTML as a PHP script rather than a jpg
, png
, etc.
After some reading on the net I learned that apparently this is bad for SEO, can someone confirm this? I don't know the details but it was something about the images not being indexed properly. I would definitely appreciate some more education on this issue.
I did some research and after looking at a google group discussion this is the solution I came up with to put in my .htaccess
:
RewriteEngine On
RewriteRule ^thumb/([0-9]*)x([0-9]*)/(.*)/([0-9]*)/([0-9]*)/(.*) http://xxxxxxxx.org/wordpress/wp-content/themes/tireconnection/functions/timthumb.php?src=http://xxxxxxxx.org/wp-content/uploads/$4/$5/$6&h=$2&w=$1&a=$3 [R=301,L]
This means that in the HTML itself, the images are referenced as .jpg
or .png
files. However when you visit that .png
or .jpg
directly it redirects you to the timthumb script.
Can someone tell me if this is a proper solution to the problem? (Assuming there is actually a problem to begin with)