Reputation: 33
I'm having a few problems when I upload my design to my hosting. Sometimes different things won't load css files, images, jsfiles, etc. This makes it so my design looks like this. I've checked all my file paths, and they all are correct.
Sometimes my index.php won't even load.
Here's another preview when I refresh.
Thank you for the help.
Upvotes: 0
Views: 2262
Reputation: 33
I have contacted my website hosting. They have restarted the server and everything is working now.
The problem would have been that there were 2 servers running on one or something they said. I have no idea what they were talking about. But it helped!
Thanks to everyone who helped out!
Upvotes: 1
Reputation: 13
Option 1: Use Xampp
www.apachefriends.org/de/download.html
But if you do, download the version 5.5.38, it works better than the new version.
After installing, close applications that need Port 80, start the Apache, and pull your folder with your stuff in "C:\xampp\htdocs".
localhost/"yourfilename" is the domain you could use it.
Option 2: Use a virtual machine and install a linux server.
Virtual Machine Download
Ubuntu Server Download
Now you can install your Server and open it.
Upvotes: 0
Reputation: 101
If you have Linux Hosting, then the references for css, images, javascript files must have the same exact name. It is case sensitive. E.g., Style.css is different than style.css and style.CSS for Linux hosting hence it will not load those files and will give file not found error.
And it applies to folder names as well. E.g. if logo.jpg is in a folder named "Images" then reference should have "../Images/logo.jpg". And if you have "../images/logo.jpg" then you get "File not found".
Upvotes: 0