WordPress.org

Support

Support » How-To and Troubleshooting » Best practice for changing the file name of an image?

Best practice for changing the file name of an image?

  • What’s the best practice for changing the name of an image?

    Is there a plugin available? Or do I need to manually change the file name on the server, then in any posts its in, and then in the database?

    P.S. the reason I want to change the name is because Googlebot is not letting remove images from Google Image using robots.txt, so I want to change the image file names completely.

Viewing 7 replies - 1 through 7 (of 7 total)
  • changing filenames is a manual and problematic process. You should simply consider preventing hotlinking.

    http://www.google.com/search?q=hotlink+protection+htaccess

    google *will* respect your robots.txt if you give it time. Case in point: ever seen a flickr image on google? they even have a form you can use to remove links from their index.

    google it 😉

    Thanks, but I’ve given Google two months now and it still won’t respect my robots.txt. I’ve used the removal form too, but it keeps denying me even though I have the correct robots.txt in place.

    I also prevent hotlinking already but I have about 30 images already on Google Image (which eat through bandwidth).

    So, presumably I need to change the file name, then change any relevant html in my posts, then change the name in the database?

    Is this correct? If so, what field and table do I change the name in?

    Where is your robots.txt file? Give us a link to it, maybe we can help you fix it.

    Robots.txt *does work* with Google, so if it’s not working, then the problem is somewhere on your end.

    Hmm.. Well, this bit:

    User-Agent: *
    Allow: /

    is unnecessary and might confuse some robots. I’d remove it.

    The rest should be fine.

    I’ve already tried it without that bit. Still didn’t work.

    The reason I added it is because when you use Google’s own robots.txt generator it recommends it.

    So does anybody actually know how to change a image file name in the database?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Best practice for changing the file name of an image?’ is closed to new replies.
Skip to toolbar