style.css not accepted by server - html

I set up my website locally on my hard disk, and everything works fine.
But when I upload my website to the server, the file "style.css" is not loaded.
When I look at code (F12), it gives me:
"style.css:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)".
The HTML file looks like this:
enter code here
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Child-Abduction.net</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="verify-v1" content="L0UzG/4pPu9fgnLL3FmaFIzGkaVSoAgVZ9LHzQ0yx0c=" />
<meta name="robots" content="index, follow">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="favicon.ico" type="favicon/ico"/>
<link rel="stylesheet" href="style.css">
</head>
Any idea why "style.css" refuses to load on my website?
TIA

Found what was causing the "error".
Seemed that several other files were not accepted by the server although on my notebook everything worked fine.
For some reason, EVERYTHING that's uploaded to the server needs to be in "lower case".
Uploaded also some *.JPG files that were not accepted by the server until I changed them into *.jpg.
Thanks

Related

How do I insert HTML boiler plate code in Visual Studio Code on Mac?

I started the coding journey and installed VSC suggested during a YouTube tut.
It seems that all emmet abbreviations are working except for SHIFT + ! which should give me the below.
<DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Document</title>
</head>
<body>
</body>
</html>
Any ideas why this is?
I really appreciate any help you can provide.
I couldn't get VSCode to expand !+Tab, but I agree with you that it should have worked.
However, I've figured out that you can use html:5+Tab (or just ! with the Emmet: Expand Abbreviation command) to get a similar result.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
</body>
</html>
You need to install HTML boilerplate extension from visual studio code extension.
I also use a Mac, I found this issue also when the file did not have a .html extension.
Try creating a new file with a .html extension such as index.html.
Retry the shift ! you did initially and press enter. The boilerplate should populate.

Missing charset header error

I have tried the following code. But still Charset header is missing, error is coming
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
I have used this line as well:
<meta charset="utf-8">...
but the error persists.
Try with removing / at the end of the meta tag.
Thanks.
Start your HTML-document like this:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Page Title</title>
</head>
...
I found a solution but it's not in META of page (I spent a few hours on this way), it's in server configuration, adding charset configuration in ngingx virtual server configuration
charset UTF-8;
I don't know about apache configuration but it should be very similar
try somethin like :
AddDefaultCharset utf-8
now I have a problem, while I type
curl -I www.w3sos.com (my testing environment)
I don't see the result, but when I use a web test solution like site analyzer it works ...
good luck, it was my 50 cents for this questions
greg

IE11 throws AppCache Fatal error

I am really humbled now. I have been trying to get my application cached in IE11 browser with no luck.
I will be really thankful if some one tell me whats going wrong. I did lot of reading whole day , but couldn't find what is causing the issue.
Issue:
My offline application gets cached correctly based on my manifest file in Chrome and Firefox. But the app doesn't get cached in IE11 (which is the only IE that I have). I have no clue what is going wrong.
My code:
manifest.appcache
CACHE MANIFEST
#V1.0
CACHE:
/FormsOffline/index.html
NETWORK:
*
index.html
<!DOCTYPE html>
<html ng-app="app" lang="en" manifest="manifest.appcache">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Forms</title>
<link href="/FormsCommon/vendor/css/all.css" rel="stylesheet" />
<link href="/FormsCommon/assets/css/main.css" rel="stylesheet" />
</head>
<body>
</body>
</html>
When I run the index.html page, i get the following erro in the IE11 console:
Creating AppCache with manifest: 'http://127.0.0.1:7101/FormsOffline/manifest.appcache'.
AppCache Fatal Error
Am building my offline application using html5, angularjs and the server is Oracle weblogic.

Website Not Displaying in Firefox, IE or Chrome

I'm using an FTP, and added some simple code to a website. On my desktop within this server, I can't view the content. I've tried Firefox, IE and Chrome. On my phone I can, and tech support could also view the content. I've cleared all cached data, but still nothing. Does anyone have any suggestions?
When I type in www.site.com/index.htm, the content will display on the desktop. When I just type in www.site.com, it won't. When I type in www.site.com on my phone, it will display.
This is the code displaying on my site:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="robots" content="noindex, nofollow">
<title>Milani Reviews</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<p>fasdfaskl</p>
</body>
</html>

Error when moving VBulletin mysql database to new server via phpmyadmin

I'm trying to move vbulletin forum from bluehost server to webhosting bad. I first downloaded the vb folder from the older server and uploaded it back to the new server.
For the database, I used phpmyadmin in bluehost.com to export my database and when I try to imprt it back in the new server I get this error :
SQL query:
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="icon" href="./favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" /> <title>phpMyAdmin <link rel="stylesheet" type="text/css" href="phpmyadmin.css.php?server=1&token=5739e47e2a94b96da71dc4213f69b5a4&js_frame=right&nocache=5344073683" /> <link rel="stylesheet" type="text/css" href="print.css" media="print" /> <link rel="stylesheet" type="text/css" href="./themes/pmahomme/jquery/jquery-ui-1.8.custom.css" /> <meta name="robots" content="noindex,nofollow" /> <script src="./js/cross_framing_protection.js?ts=1332953438" type="text/javascript"></script> <script src="./js/jquery/jquery-1.4.4.js?ts=1332953[...]
MySQL said:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w' at line 1
Can any one please guide me to the solution ?
The bluehost phpmyadmin version is 3.4.10.2 and the webhostingpad is 3.4.10.1 is this the reason of the problem ? if yes, what is the solution ??
So you have downloaded an export from your old host? What format did you download this as? Just SQL or some kind of compressed version? As the first thing to do should be to identify if the problem is with the host you're uploading to or the one you're taking the data from. I'd suggest opening the exported file locally and seeing if it looks to be a valid SQL dump or not.