The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Mod Rewrite - Page Titles

Hello,

I have news and jobs that are posted on my site in php. I used mod rewrite to jobs make them look like /job/433.html. The issue is that each of the pages has the same title which is "Job Detail for www.XXXX.com". Google does not like to see the same page title. How do i deal with this issue of different end address but same page title? I want to have different page titles for each one if possible.

Thats the issue, i dont know how to have a different page title on my each php page that has a different job. I want to have a different page title for each job. Not sure how. Got the extension from php to html but need to have different page titles.

OK, so what your PHP script will do is the select the data that you want to display, then wrap the appropriate values in HTML tags.

I don't know your database structure, but let's say you have a table value called JobTitle that you've selected from your database. This is how you might want to write the web page title portion of your script:

Code:

<?php echo "<title>Job Title: {$row['JobTitle']}</title>"; ?>

Of course, what I've shown here is only a small portion of your PHP script, and there is certainly more than one way to do this. Anyway, I hope this helps.