Skip to content Skip to sidebar Skip to footer

Html Page Is Displayed Well As File, But Not On Server

I have a really weird problem: a HTML page is displayed properly if I access it in my browser by path, however it looks awful if I access it from my localhost. I know this is a ver

Solution 1:

Your paths are set wrong. I copypasted your code and it looked exactly like your "localhost" screenshot. As I only have the code, and no css/js/etc files that is only normal. Thus on your machine the paths must be set wrong. Try putting all your dependencies in your server's root directory and calling them via "/path". If nothing works, try using online files, you cannot set the path wrong there (i.e. instead of js/jquery-ui/jquery-1.9.1.js use http://code.jquery.com/jquery-1.9.1.js).

Solution 2:

If you look at a website in your browser by path it will not be interpreted by your local apache server.

So php would be visible if you open it via path but it will be compiled when you use localhost. So it looks like something is interpreted that doesn't look like it should

Solution 3:

How is the page in server not showed properly? what lose (images, style, files, all)?

It can be because the dependencies are not configured properly to load from the server, you maybe need check the paths.

Also can be because there are things that are not being procesed by the server (dinamyc stuff).. if you can specify a little more your problem we can help more.

Post a Comment for "Html Page Is Displayed Well As File, But Not On Server"