You should change all URLs in the database from your local url to your production (live) URL.
You can do this using a plugin like Better Search and Replace.
Alternatively, if you can’t access WP Admin, you can use something like this script, which should be uploaded directly to the root of your WP install. It’s important to follow the instructions and remove after use.
Once the process is complete, clear your permalinks and you should be good to go.
Related Posts:
- Limit image upload to one and disable audio, video and other document file types to upload
- what happens to existing media files when I switch to year/month directory structure format?
- Media upload finished hook
- How can I batch delete all unattached images with WP-CLI or other automated process?
- Image upload callback in new 3.5 media
- How to wp_upload_bits() to a sub-folder?
- “Add Media” only shows “Full Size” under Attachment Display Settings
- Differentiate Featured Image from Post Images upon Upload
- What might cause a POST to wp-admin/async-upload.php to return JSON >and< HTML?
- Is it possible to trigger some JavaScript when Media Popup is opened?
- What permissions does wp-content/uploads need?
- wp_handle_upload() – how to upload to a custom subdirectory within uploads
- There’s a way to scale media (images) at 50%?
- How to Reduce the Maximum Upload File Size?
- Media Uploader: get deleted files
- How can I prevent uploading bmp image?
- how to upload mp3 from url to wp media
- How to get the image url in the input box from media library?
- Add file extension to temporary file
- Post Specific Uploader
- WordPress site stuck at 1MB for max file size
- Why “Store uploads in this folder” option is not showing in Media Settings in WordPress
- Media upload via backend doen’t work after moving site
- Specified file failed upload test. Error When Uploading Image From Front-end
- Where is Featured Image code stored in WP?
- Insert into Post button is missing for certain images
- Allowing .exe uploads (old WPSE posts no longer work)
- Thumbnails produce unwanted gray pixels on white background [closed]
- Prevent renaming of uploaded media
- Is it safe to delete uploaded photos if Photon (Jetpack) is activated?
- How do I get allowed Media Library upload file extension list?
- Is it possible to upload text files (e.g. JSON) to wordpress blog in any way? [closed]
- How to manage a big collection of files with wordpress?
- Allow only attachment uploaded to current post
- Use the WP media uploader dialog for uploading a form attachment (non-admin). Offering progress and drag and drop feedback
- using wp_insert_attachment() results in guids with file names different to the same file when uploaded via media page in admin
- Separate Uploads folder on other server
- How to disable plupload completely from latest wordpress 3.6 and make browser upload default
- Post processing of uploaded file
- Use custom image size in admin panel
- upload_mimes not accepting CSV
- Receiving 404 when uploading file larger than 10kb
- making media URL secured
- Password protect any file in WordPress
- Is it safe to allow non-admin users access to media uploader
- WYSIWYG editor with image upload for “Normal Users” [closed]
- How to generate thumbnails when needed only?
- One step picture upload
- Alow users to delete uploaded images inside backend?
- add_image_size adds size, but doesn’t upload if source resolution is same as resize resolution
- why can’t upload deb package in my wordpress?
- How to upload media to specific year/month folder
- PHP error when trying to upload .mp3 files via Media Library [closed]
- “page not found” due to hat character (“^”) in a upload file name
- Best way to receive special images in posts
- Provide logo in theme
- Flat media folder vs multiple directories
- Move media files from the root to date folder structure
- Offload Media Library to other domain on a different server
- What functions of WP_Filesystem allow me to create a file with code-generated contents in a directory?
- Image upload to media library fails. Folder won’t create, database insert fail, XAMPP Windows
- Right way to download file from source to destination
- Dynamically determine the width and height of a image file to be cropped & uploaded AFTER form submission given fixed aspect ratio
- Incorrect filenames in load-scripts.php parameters
- wordpress upload permission on nginx & ubuntu
- Embed HTML5 files/subfolders in post?
- How to change archieve frequency of the media file in uploads folder for wordpress blog
- Insert attachments from custom uploader into post (regular uploader style)
- How to download CSV from sub directory in uploads folder
- Import media (.xml) does not attribute featured images to posts
- Blog suddenly can’t display .jpg
- Upload multiple files
- wordpress Do not show new image attachment in media
- 413 Request Entity Too Large nginx/1.18.0 (Ubuntu)
- Modify Maximum upload file size text in WordPress Media
- Manipulate the files uploaded via Gravity Forms before they are stored
- Replicate Media Galley Edit view in Add Media View
- Front-End Upload media with category
- Sanitizing existing media library paths and page links from foreign characters
- Cannot upload png photo files into media library. I get a ‘Could not insert post into the database’
- Do audio files impact the loading time of the website?
- File upload in WordPress
- Set default “Link CSS Class” in add media admin editor
- How to change default upload dir?
- How could you allow users to upload a video in within their profile and display it on a wordpress site?
- 45mb File Exceeds the Maximum Execution Time
- How to share media between independent blogs?
- WP Capabilities to Add Media, Use Media, But Not Edit Them
- Limit attachment caption characters
- Password protected uploaded PDF page
- CSS updates appear after delay [closed]
- Why isn’t my enqueuing working properly?
- What is the best way to upload a temporary & sensitive file and then delete it when done
- How do I allow family commenters to upload photos?
- Do I need FTP set up to upload files to wordpress server
- Media Gallery doesn’t show (using WP-Read Only)
- Problem uploading files, after changing domain name
- Unable to upload images using the Media Library
- Cannot upload CSV via REST API: ‘Sorry, not allowed to upload this file type.’ but it does work through the WordPress Dashboard
- Image in binary in the data to WordPress media library