On my site everytime i try to see a .js .png .css and many more files i get a 404 error. Can somebody help please?
@escept said:
On my site everytime i try to see a .js .png .css and many more files i get a 404 error. Can somebody help please?
You’re using what CMS?
You try to see? means that you’re trying to see files directly or on page?
I don’t think i set the CMS. basically i uploaded a .js file on my website’s htdocs folder, and i can’t access it with http://website.cf/file.js
I’d like to help. Can you give me an example URL so I can check what’s going on?
esceptmusic.cf/songname.js is what i am trying to access. The weird thing is that even if i click the file from directory listing it still says 404 error
@escept said:
esceptmusic.cf/songname.js is what i am trying to access. The weird thing is that even if i click the file from directory listing it still says 404 error
The page seems to be working fine from here. Seeing how your account is still quite new, this could just be DNS propagation. Can you try to clear your browser cache and DNS cache or wait a few days?
huh… I deleted my browser cache and even tried a different browser and i still can’t access it. + my html page doesn’t load the script for some reason.
@escept said:
huh… I deleted my browser cache and even tried a different browser and i still can’t access it. + my html page doesn’t load the script for some reason.
It’s a usual things for new domain take up until 24 hour or more to be available. Just wait for at least 24 hours then try to access it again.
even more errors. Everytime i change the htaccess it reverts to default.
nevermind fixed it now.
will this happen everytime i upload something or only the first time?
I just found out that it only works if i put www at the start of the url.
i just found this on stackoverflow and it fixed all of my problems. Anyways thanks everyone for the help.
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
i was wrong. png files still do not work. any advice?
Nope, that was fixed in 2 minutes.