I use the same header for all the pages on my website and I was wondering if its possible to add a different title and meta stuff for every single page. Like a php defining thing or so <title><? $title ?></title>. Will this work or are there other methods to achieve what I want?
Good idea because using the same Title tag on every page is not good for SEO at all. What i would do is have your header as an include. So header.php would be like: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title><? echo $title ?></title> <meta name="keywords" content="<? echo $keywords ?>" /> <meta name="description" content="<? echo $description ?>" /> </head> Code (markup): And then every page you have can start: <? $title = "My title tag for this page"; $keywords = "my keywords"; $description = "my description"; include ("/home/mysite/public_html/header.php"); ?> Code (markup): This will then call in your header.php page for each page and populate the title and other tags as you wish.
alright so let's say you have this page you could change them with each page like this make a file named "settings.php" and have it like this and you'd fill the info out on your page like this