1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can you rename images on a website without them breaking?

Discussion in 'White Hat SEO' started by dog-tag, Oct 14, 2011.

  1. dog-tag

    dog-tag Senior Member

    Joined:
    Oct 19, 2010
    Messages:
    811
    Likes Received:
    912
    Occupation:
    Full-Time Internet Marketer + Business Consultant
    Location:
    Thailand
    Hey all,

    I'm trying to rename my images at directory level but when I do the images break.

    I tried opening my images in filezilla and re-naming them but then they break (won't appear) on my site.

    When I rename them I presume I'm breaking the path, so is there anyway I can rename the images without having to re-upload them all manually with new names?

    Thanks :)

    P.S I'm not trying to change the alt or src name, I want to change the name at directory level.
     
  2. TheMatrix

    TheMatrix BANNED BANNED

    Joined:
    Dec 20, 2008
    Messages:
    3,444
    Likes Received:
    7,279
    If you rename your file, then you need to change the filename in the page as well so the change is reflected there!
     
  3. dog-tag

    dog-tag Senior Member

    Joined:
    Oct 19, 2010
    Messages:
    811
    Likes Received:
    912
    Occupation:
    Full-Time Internet Marketer + Business Consultant
    Location:
    Thailand
    hmmm... this would be handy, can this be done in xsitepro?
     
  4. TheMatrix

    TheMatrix BANNED BANNED

    Joined:
    Dec 20, 2008
    Messages:
    3,444
    Likes Received:
    7,279
    What files are you using? HTML, PHP, or what? Almost all of these can be edited using a text editor like Notepad.
     
  5. dog-tag

    dog-tag Senior Member

    Joined:
    Oct 19, 2010
    Messages:
    811
    Likes Received:
    912
    Occupation:
    Full-Time Internet Marketer + Business Consultant
    Location:
    Thailand
    I just use xsitepro and I upload in .php format... you know how I can do it?
    (I can feel a +rep coming on!)
     
  6. dog-tag

    dog-tag Senior Member

    Joined:
    Oct 19, 2010
    Messages:
    811
    Likes Received:
    912
    Occupation:
    Full-Time Internet Marketer + Business Consultant
    Location:
    Thailand
    Figured it out there ->

    Simply open filezilla and xsitepro.

    In filezilla (or whatever equivalent) go into your website folder and then
    find your sites images folder. Find the image you want to rename and just rename it. That's the image name now changed on your server.

    In xsitepro go to the page and then picture you want to change. Right click the image, go to image properties, and then look at the bottom where it says image source.... you will see images/picturename.jpg

    To complete the change over change the wording to what you want so it will now read images/newpicturename.jpg (make sure to leave .jpg in)

    Now the important part is to make sure you publish in xsitepro because at the moment you've a broken image on your website, so publish and you will now have the image back on your site, but this time it has a new name at directory level.
     
    Last edited: Oct 14, 2011
  7. TheMatrix

    TheMatrix BANNED BANNED

    Joined:
    Dec 20, 2008
    Messages:
    3,444
    Likes Received:
    7,279
    You know, if you open the php file in notepad, and rename the file, it works then also. No fancy tools needed!

    Just sayin'!
     
  8. dog-tag

    dog-tag Senior Member

    Joined:
    Oct 19, 2010
    Messages:
    811
    Likes Received:
    912
    Occupation:
    Full-Time Internet Marketer + Business Consultant
    Location:
    Thailand
    I just can't picture how I do that... When I open a page inside filezilla it only allows me to view it... do I need to download the whole website and then edit and re-upload or is there a simpler way?
     
  9. TheMatrix

    TheMatrix BANNED BANNED

    Joined:
    Dec 20, 2008
    Messages:
    3,444
    Likes Received:
    7,279
    What you have to do is, in filezilla, drag and drop the required file on your desktop. Then in Windows, right click on the file, and open with Notepad. Make the necessary changes, and save the file. In filezilla, drop and drop the file from desktop to the same location, allowing the file to be overwritten!

    Simple!
     
    • Thanks Thanks x 1
  10. dog-tag

    dog-tag Senior Member

    Joined:
    Oct 19, 2010
    Messages:
    811
    Likes Received:
    912
    Occupation:
    Full-Time Internet Marketer + Business Consultant
    Location:
    Thailand
    +1 rep given ;) Thanks for the help man, that was very useful to me!

    It still breaks the image on me when I rename the source though
     
    Last edited: Oct 15, 2011
  11. TheMatrix

    TheMatrix BANNED BANNED

    Joined:
    Dec 20, 2008
    Messages:
    3,444
    Likes Received:
    7,279
    Does it?

    PM me the image URL, and the file you are editing, and I'll try to fix it ASAP!