Does any one know of the best way to add pages to a website?
What i'm trying to do is when a link is click on my site navigation i would like for the page to load with in my web template without braking it all up like i would have to do when using php to have index.php?=page1 and using mod_rewrite to make it mysite.com/page but viewing the code of my site it will show every head tag of each page being called.
For Example
Quote
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
header code blah blah blah...</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
site content code and stuff
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
footer code here blah blah blah
</body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
header code blah blah blah...</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
site content code and stuff
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
footer code here blah blah blah
</body>
</html>
Is there a better way to link my pages were editing them is easy and doesnt require to have everything called from diffrent pages like header.php, footer.php, content.php and so on.
Edited by Empresive, 24 January 2009 - 11:13 PM.
