TIMTHUMB.PHP将如何影响网站的SEO或图像搜索引擎优化
If I use timthumb.php for reducing images and posting them automatically with the appropiate size on my website sounds fantastic. Saves a lot of work.
But would that affect the results in http://images.google.com ? Let's say I have a photo named "my-dalmatian-dog.jpg" and then I apply tinthumb.php..it would be changed to some other name...and I dont know if the search results would be that great.
what would be the result of using this, in terms of SEO ?
如果我使用timthumb.php来减少图像并在我的网站上以合适的大小自动发布它们听起来很棒。 节省了大量的工作。 p>
但这会影响 http:// images.google.com ? 我们说我有一张名为“my-dalmatian-dog.jpg”的照片然后我申请了tinthumb.php ..它会改成其他名字......我不会 知道搜索结果是否会那么棒。 p>
在搜索引擎优化方面使用此结果会是什么? p> div>
You can always rewrite your URLs so that they look like the original. For example, you could make timthumb.php?filename=my-dalmatian-dog.jpg
look like /images/thumb/my-dalmatian-dog.jpg
using an Apache rewrite rule like this:
RewriteRule ^images/thumb/(.*) timthumb.php?filename=$1
I did figure out on how to redirect it albeit then it doesn't covert the images... I mean it redirects to the image source but simultaneously it doesn't resize them...
RewriteRule ^[-a-z0-9_]+/[-a-z0-9_]+/([0-9]+)/?$ /story.php?id=$1 [NC,L]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{QUERY_STRING} ^(.*&)?src=(.*)&w=(.*)&h=(.*)&zc=(.*)&q=(.*)?$ [NC]
RewriteRule ^(.*/timthumb\.php)?$ %2 [R=301,L]
Seems like it has to be done from within the timthumb.php file itself. It gotta see when an image is being called to resize and when is it called for indexing by robots etc...
Can anyone find a flexible solution here?