Website Works Locally but Not After Upload: Case Sensitivity, Paths and Permissions
Servers differ from your computer. Check names, paths, case and file permissions.
Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
Check
- Case sensitivity. Linux hosting treats
Image.JPGandimage.jpgas different files. - Paths.
/images/logo.pngstarts at the site root;images/logo.pngis relative to the page. Local file paths such asC:\Userswill not work. - Missing files: did the upload finish? Compare file lists.
- Permissions: folders 755 and files 644. See Website File Permissions: What 755, 644 and 777 Mean and How to Fix Them.
- PHP version differences. See Which PHP Version Should You Use, and How to Change It Safely.
- Database settings point to the live database.
See HTML Website: CSS or Images Not Loading After Upload.
Related guides
- Writing Clear Error Reports: Screenshots, URLs and Steps
- WordPress Tag and Date Archives Duplicate Content: Settings
- WordPress Permalinks Change: Redirect Old URLs and Avoid 404s
- Error Establishing a Database Connection in WordPress: Full Checklist
Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.