Community Forums › Forums › Archived Forums › General Discussion › More Google-friendly permalinks for images?
Tagged: image, image permalink, media, permalink, uploads, wp-content
- This topic has 8 replies, 3 voices, and was last updated 10 years, 1 month ago by
RonnyMac.
-
AuthorPosts
-
January 31, 2013 at 2:44 pm #16825
aaron1728
MemberInstead of a big ugly URL like:
http://www.domain.com/wp-content/uploads/2013/01/photo.jpg
I'd like search engines to see
http://www.domain.com/images/photo.jpg
Yes, there would be a constraint on identically-naming images, but I'd prefer appending a numerical suffix when that happens than to have images buried 4 subdirectories deep.
Better, I'd like this to be an option so that ALL uploaded media content be in a single directory.
January 31, 2013 at 5:05 pm #16874SoZo
MemberThe option to upload to one directory is in the Media settings panel
John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography
January 31, 2013 at 10:20 pm #16973RonnyMac
MemberGoogle doesn't really care where the images are located. Putting them all in a single directory is probably an exercise of diminishing returns.
The option to upload files to a single directory was apparently removed in new installs of WP 3.5.x but can be changed by adding a constant to the config.php file.
See here.
ronnymac
—
Ron McElfresh
Honolulu, HI
—
http://mac360.com/
http://mcelfresh.org/
http://mcsolo.com/
http://pixobebo.com/
http://noodlemac.com/February 1, 2013 at 8:25 am #17049SoZo
MemberThat's weird. I still have the option in all my installations.
John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography
February 1, 2013 at 9:53 am #17061RonnyMac
MemberIf you had the option prior to upgrading to WP 3.5, the option remains. It's simply not there in new installs of WP 3.5.x.
ronnymac
—
Ron McElfresh
Honolulu, HI
—
http://mac360.com/
http://mcelfresh.org/
http://mcsolo.com/
http://pixobebo.com/
http://noodlemac.com/February 1, 2013 at 10:02 am #17068SoZo
MemberI just did a new install and the option still shows up for me
John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography
February 1, 2013 at 12:41 pm #17127RonnyMac
MemberInteresting. Here's an image for a new install and the option to upload a file to a different directory is missing. Even WordPress said the field was removed in 3.5.x (but available again by using Constants).
ronnymac
—
Ron McElfresh
Honolulu, HI
—
http://mac360.com/
http://mcelfresh.org/
http://mcsolo.com/
http://pixobebo.com/
http://noodlemac.com/February 1, 2013 at 12:44 pm #17129SoZo
MemberI'm not seeing an option to upload to a different directory. There is a check box to separate uploads into year and month directories. Uncheck that and they all go straight into a single directory, uploads.
John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography
February 1, 2013 at 12:52 pm #17131RonnyMac
MemberYeah, that's what I mean. WordPress took out the visible option to select a specific, user selectable uploads directory in WP 3.5. Uploads all go to a single directory in wp-content/uploads with the option to sort uploads into folders or not. Selecting a specific directory can still be done but requires the Constant line to be added to config.php.
WPBeginner has a good tutorial.
I'm convinced Google doesn't care much about where the image files are located or how they're named. There's great value in using WP's built-in year/month folder arrangement for images (makes it easier to find images), as opposed to just naming an image and dumping it into a single folder. That's a recipe for confusion later on.
On my sites I name each uploaded image to start with the current date of upload. For example, the image waikiki-beach.jpg, would be named 20130201-waikiki-beach.jpg. That way images sort nicely in a directory of many images and they're easier to find for troubleshooting.
ronnymac
—
Ron McElfresh
Honolulu, HI
—
http://mac360.com/
http://mcelfresh.org/
http://mcsolo.com/
http://pixobebo.com/
http://noodlemac.com/ -
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.