Viewing 4 replies - 1 through 4 (of 4 total)
  • In the dashboard, Settings / Miscellaneous

    Thread Starter kas187

    (@kas187)

    ok but will this also create the ‘images’ folder for me and if not then do i need to create one within the main folder structure i.e. where the wp-admin and wp-content folder sit?

    Thread Starter kas187

    (@kas187)

    still not working, im working locally so here’s what i’ve done:

    1. Went to Settings > Miscellaneous Removed original path
    2. Added a full local path: http://localhost:1234/domain/images
    3. Unchecked ‘Organize my uploads into month- and year-based folders’ option

    Tested by uploading a new image which is being added to wp-contents > uploads folder but in the editor it is writing out the the following path: http://localhost:1234/domain/images/imagename.jpg

    So the image isn’t being added to the images folder, any suggestions?

    To answer your original question:
    1. Settings -> Miscellaneous
    2. Store uploads in this folder = “images”
    3. Clear the “Full URL path to files” field
    4. Uncheck the “Organize my uploads into month- and year- based folders”
    5. Save Changes

    When you upload a new image, it will create the “images” file if it doesn’t already exist and upload an image to http://domain/images/imagename.jpg instead of http://domain/wp-content/uploads/{year}/{month}/imagename.jpg

    If WP is NOT installed in the root directory (ie: http://domain/wp), but you want to upload images to a directory in the root directory (ie: http://domain/images), then you need to specify a PARENT directory:
    1. Settings -> Miscellaneous
    2. Store uploads in this folder – “../images”
    3. Clear the “Full URL path to files” field
    4. Uncheck the “Organize my uploads into month- and year- based folders”
    5. Save Changes

    Again, WP will create the “images” directory for you, and images will be uploaded to http://domain/images/imagename.jpg instead of http://domain/wp/wp-content/uploads/imagename.jpg

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘changing image url’ is closed to new replies.