I have a very basic webpage with two files, index.php
and style.css
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Test</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
<script language="JavaScript" type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
</head>
<body>
Example text
</body>
</html>
body {
text-align: center;
}
If I navigate to www.example.com
this page loads correctly. WAMP automatically takes me to index.php
. However if I navigate explicitly to www.example.com/index.php
the css fails and everything reverts back to the default of being left-aligned.
EDIT: I originally blamed this on a GET
variable but I have realised that's not the issue