tags:

views:

139

answers:

6

Hi All,

I have a custom CMS for the performing arts center in my town about to launch. They will have artists/events/media, etc. on the site via the interface I've built for them in php/mysql.

My question has to do with google indexing and the CMS content. Odds are they won't be deleting archived shows (which will have a url like so: calendar_expanded?id=310) but if they do, the page will display a little blurb telling the person trying to access that record that it no longer exists, or never did.

What kinds of things should I worry about when it comes to SEO and the file calendar_expanded.php and how google and other search engines index it?

Thanks in advance, jay.

Edit

What I'm getting at here is that I don't want search engines getting a 404 error returned from the site. If the page is suddenly unavailable with REST-ful URLs as folks are suggesting I'd have to implement some way for a .htaccess permanent redirect, no?

A: 

You might want to consider URL rewriting to get more SEO-friend URLs. To everyone, search engine spiders included, "/expanded_calendar/310" looks a lot better than "/calendar_expanded?id=310".

Eli
Hmmm. Ya I thought so which is why I asked this question: http://stackoverflow.com/questions/2121069/rest-style-urls-and-php and yet I didn't get the answers I thought I would. Thoughts @Eli?
jeerose
anomareh's comment on your question looks right for the pretty URL. Then, you can handle missing pages however you want. In calendar_expanded.php, you can see that the calendar in question is missing and render whatever you want the search engine or user to see.
Eli
+1  A: 

On the record not found page offer links to the user that will let them try and find it themselves (Link to search, calender home, home page, contact us/help page). I would also have the site generate an XML sitemap (or use a tool such as XML Sitemap Generator to do it for you)

You might also consider having the URLs rewritten so it says

/events/title-of-the-event/310

So you can search the site and provide links to events with similar titles on the 404 page.

Chris T
A: 

Google and other Search sites will index your site as is. No matter wich version you use calendar_expanded?id=310 Will also be indexed as calendar_expanded?customerid=310

No matter which you choose Search engines will index it.

streetparade
A: 

Make sure that you send the appropriate HTTP status codes to tell the clients the status of their request. If a requested resource can not be found or does not exist, send the status code 400; and if it does not exist any more, send the status code 410 if possible.

Gumbo
A: 

In addition to the other suggestions, you ought be send the appropriate HTTP status back to the browser, not just display a human-readable "oh, this page has been moved." Depending on how you want to handle the the request for missing info, you'd do something like this:

<?php
header("HTTP/1.0 301 Moved Permanently");
header ('Location: ' . $new_url);
?>

Then both the user and the search engine would be redirected to an overview of all events (or whatever).

jamieb
+1  A: 

What I'm getting at here is that I don't want search engines getting a 404 error returned from the site. If the page is suddenly unavailable with REST-ful URLs as folks are suggesting I'd have to implement some way for a .htaccess permanent redirect, no?

No. You should show your special page with 404 error code but on that page you can tell others that information is no longer available and put there some informations where to find other useful info.

Search engines will be know to not showing this page but users will be informed where they should go.

dario-g
Thanks. +1 for this info @dario-g. @Gumbo saw my failed logic before I made that edit.
jeerose