RE: how to generate static html pages from dynamic php pages
| From: | John Holmes | Date: | Thu, 09 May 2002 11:50:29 +0000 |
| Subject: | RE: how to generate static html pages from dynamic php pages | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-96783@lists.php.net to get a copy of this message | ||
> This is cool, but I would be really hesitant to make my 404 page serve
> up actual real content, even if it's only the first time the link is
> hit. For the sake of search engines that might ignore links that
return
> a 404 error (regardless of the content at that page), I would want to
> make sure my content returns a valid HTTP status code, so that search
> engines know that the content is okay to index.
It wouldn't be a 404 error, though. The 404 page would be an
interceptor. It would say, okay, you're looking for
products/1234/index.html, but it doesn't exist. Let me create it for
you, and redirect you back to it. So the search engine or user is none
the wiser and they get products/1234/index.html no matter what. Now, if
the product really doesn't exist, then you throw them a 404 error, so
they know.
---John Holmes...