I have a index.php file on my root folder and it has an header file included like
include 'include/header.php';
In that header.php i have following code at start...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<title>title</title>
<link rel="stylesheet" href="./css/main.css" type="text/css" />
<link rel="stylesheet" href="./css/dashboard.css" type="text/css" />
<script src="/js/jquery-1.10.2.js"></script>
<script src="/js/bootstrap.js"></script>
<script src="/js/tablesorter/jquery.tablesorter.js"></script>
<script src="/js/tablesorter/tables.js"></script>
</head>
<body>
The above index.php is working fine on root folder but when i use it in other folder it then css is not working for same file... if i use abc/index.php then css will not work for that file...
Note : I have used ./ as well as / or nothing at all but its not working.