You can move the uploads folder to the sub domain by doing this
Open up your wp-config.php file, located at the root of your WordPress installation, and add the following code:
define('UPLOADS', 'http://images.mydomain.com/uploads');
The codex specifies that it should be added before the line that says require_once(ABSPATH.’wp-settings.php’);.
Make sure the uploads folder is writable.
Related Posts:
- Restricting users to view only media library items they have uploaded?
- Prevent WordPress from generating medium_large 768px size of image uploads?
- Upload images to remote server
- Media Upload Folder – how to manage
- How to set the default embed image size
- Filter Media Library by author or post_parent
- Use Media Library to manage galleries like Nextgen (with folders, albums, collections, tags, categories, terms…)
- How do i upload an image and return the image id?
- Insert Images at Master Uniform Height
- Alter media caption/description conflict in WordPress?
- Restrict the number of images to upload per post
- Upload images using FTP and show them in media
- Media sizes aren’t being created – server config?
- custom image size with New Media Manager in wordpress 3.5
- How to add a media with PHP
- How to make programmatic image upload generate thumbnail and sizes?
- Best way to strip character entities (%20 etc)
- What’s the best “insert all images” plugin?
- Different upload path per file type
- 3.5 media.editor: what is the event listener for choosing an image?
- Getting alt text of featured image
- Get image alt attribute just by image URL
- Is there a way to get attachment data?
- Problem with loading images from child theme CSS file with relevant path
- Rename media files generated during upload
- HTTP Error when uploading files above 7mb unless using GD Image Editor
- How Do I Delete All The Images from WordPress
- Change WordPress Media Manager
- Site migration – some images not displaying in Media Library
- Bulk edit of EXIF data for jpeg images uploaded in the media library?
- Upload media files to Amazon S3
- image in my post disappeared after I upload website to remote server
- Pull images from the gallery
- How can I create more upload paths, like a post corresponding to a post title folder used to store images of the same product
- WordPress automatically downscaled images larger that original
- How to open default wp image editor screen dynamically?
- Regex expression for redirecting image URLs to another folder
- add media button is not working
- Searching for any images in media library displays “no media found”
- How to filter the image embed code based on link type
- How to configure sub-domain for images on Debian Apache VPS?
- Why it doesn’t show media urls on rest Api? (WordPress)
- How to get file URL from media library
- Change wp-content/uploads to uploads/%postname%/%image%
- Post and featured image have the same name, why is the attachment (image) is showing and not the post?
- Upload box media size not working
- Moving media library to the media library of completely different site
- Why does WP allow to view and media item as a page
- Upload media only to DB
- How to make my site use HTTPS for images or how to insert images as relative paths?
- Function to remove all classes on images inserted into posts?
- How to redirect homepage to actual URL?
- Get images attached to a specific page
- Is there a way in WordPress to convert images to WebP without a plugin?
- Automatically Insert alt attribute above image has h2
- Auto delete pictures in media library by age
- Is it possible to enable the ‘Link To’ field under ‘Attachment Display Settings’ for a Featured Image?
- WordPress Attachments with old images
- Weird encoded error when using wp_generate_attachment_metadata()
- Disable image rename on upload
- Redirect Image Url to a page via htaccess
- Set Featured Image not opening – Stuck at loading
- How to remove “Image Information” and “post date/author” from a media page?
- How can i identify media uploaded to my website that is not being used anywhere anymore?
- image URL changed in wordpress
- Can’t seem to see images on my machine but can on the server
- Attachments without images
- get rid of random string before an for an image path on wordpress
- Serving Images from subdomain in wordpress
- User uploads image as “Featured Image” but WordPress resizes it?
- Deleted Image giving a 301
- WordPress append -1 to the image name
- Allow a specific user role I have created to only upload one image to his media library
- cant upload media/pictures to my wordpress site, cant upload anything to my database
- Built-in image lazy loading: Does it come with a polyfill for older browsers?
- i want to change URL of WordPress image or rewrite in runtime
- Updated wordpress missing image upload area
- Post-processing of the image failed
- Generate links on all images in posts – is there a hook?
- Modify media file markup output
- Unable to delete images in Media Library
- How to regularly backup and update WordPress website with lot of images?
- Newly uploaded images are not updating in featured image
- wordpress images not showing properly
- Redirect Causes Missing Images
- Edit image itself
- page displaying media caption shortcodes
- How do I embed youtube video via url in frontend posting
- Missing Images in Uploads Directory (Server Only)
- Set padding for all content except images and few more elements
- Change image link in excerpt to point to post
- Aviary + WordPress Media
- Media Library is not loading on grid view in admin panel
- WP is showing wrong image dimensions
- Blurry Images WordPress 5.8.1
- Why some images are not allowed to be edited only for thumbnails?
- WordPress API, creating Featured Media from image url (nodejs)
- Delete all thumbnails & regenerate them?
- Multisite image URLs incorrect in editor
- Uploading media to wordpress API with C# HttpClient