H E L P !!!!!
I have implemented the Apache ForceType directive on my web site and I have an .htaccess file which contains the following:
<Files property>
ForceType application/x-httpd-php
</Files>
I have my php file known only as "property" and if I type:
http://www.mysite.com/property
I get a page without data but the stylesheet is intact.
If I type:
http://www.mysite.com/property/586
The data is retrieved and the page is displayed, however there is a problem with the stylesheet in that it cannot find it.
At the top of my web page I have the following PHP code:
$rootlevelfolder = "../";
require $rootlevelfolder . "mysite/dbheader.inc";
require $rootlevelfolder . "mysite/mainheader.inc";
$pageinfo = explode("/", $_SERVER['PATH_INFO']);
// Get the property id
$propertyid = $pageinfo['1'];
The html of the page looks like:
<!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" />
<head>
<link rel="stylesheet" href="mystyle.css" type="text/css" />
<script language="JavaScript" src="tools/mytools.js"></script>
<title>My Properties</title>
</head>
<body>
My html *
</body>
</html>
Can anyone suggest what the problem might be please?