Title: Removing Underscore from Image Permalink
Last modified: August 30, 2016

---

# Removing Underscore from Image Permalink

 *  [John Hughes](https://wordpress.org/support/users/jjhpmag/)
 * (@jjhpmag)
 * [11 years ago](https://wordpress.org/support/topic/removing-underscore-from-image-permalink/)
 * Most all my site images loaded in the media gallery, including all slider images
   for the front/home page, have a permalink with an underscore. Google prefers 
   dashes. I can not find a way to edit or change the permalink to most if not all
   of the important images within my home page.
 * I tried uploading the same images under a different name containing keywords 
   and numbers. Same thing happens, the permalink to the image contains an underscore.
 * My permalink settings is not set for this to happen. I have the permalink setting
   to Post name, which works fine with all posts and pages.
 * How can I set the image permalinks to not use an underscore when uploading. And
   is there a way to edit the existing images in the gallery or should I be looking
   to reload all?
 * Thanks for the assistance and opinions!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [11 years ago](https://wordpress.org/support/topic/removing-underscore-from-image-permalink/#post-6329952)
 * The image URL should be dependent on the file name. Can you provide an example
   of a URL like that?
 * > Google prefers dashes.
 * Really? I’m pretty sure you just need to provide good content and the rest will
   work itself out. 😉
 *  Thread Starter [John Hughes](https://wordpress.org/support/users/jjhpmag/)
 * (@jjhpmag)
 * [11 years ago](https://wordpress.org/support/topic/removing-underscore-from-image-permalink/#post-6329955)
 * Thanks for the opinion and assist with this. Don’t argue the content part but
   every little bit helps, which is why I ask the question.
 * Here is an example of an image URL and its permalink:
 * URL:
    [http://www.johnhughesgolf.com/wp-content/uploads/2014/04/John-Hughes-Copy-2.jpg](http://www.johnhughesgolf.com/wp-content/uploads/2014/04/John-Hughes-Copy-2.jpg)
 * Permalink for same image:
    [http://www.johnhughesgolf.com/?attachment_id=707](http://www.johnhughesgolf.com/?attachment_id=707)
 * Opinions, comments, and suggestive fixes are very much appreciated.
 *  Thread Starter [John Hughes](https://wordpress.org/support/users/jjhpmag/)
 * (@jjhpmag)
 * [11 years ago](https://wordpress.org/support/topic/removing-underscore-from-image-permalink/#post-6329956)
 * Resizing and other image SEO matters are in the works as we discuss this topic.
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [11 years ago](https://wordpress.org/support/topic/removing-underscore-from-image-permalink/#post-6329961)
 * The `?attachment_id` parameter is built into WordPress for that page when you
   inserted that image and had it point to the Attachment Page. It should only be
   that way when you point the image to the Attachment Page when the permalinks 
   was set to the default.
 * When you save a new attachment with your new permalinks it should point to something
   like this.
 * `http://your-url/attachment/your-image-here-jpg/`
 * Have you tried re-saving the post to update the attachment URL? Your URLs above
   are not loading for me.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Removing Underscore from Image Permalink’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/removing-underscore-from-image-permalink/#post-6329961)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
