marcmerz
11-08-2004, 06:13 PM
When i try to reach a page inside CMPS that does not exist, i get returned to the main page. Not too bad. But: The HTTP status code returned is 200. Usually you would not care but the problem is the bots. If -for some reason- such a non existing page gets into a search engine index, it will stay there forever and would just be a copy of your CMPS main page.
Is it possible to return the correct status code in case a CMPS page does not exist?
I would love to see this functionality because when the correct status code is sent, it would be easy to use something like:
ErrorDocument 404 /index.php?page=error404in a .htaccess file and (at the same time) set up a error404 page inside CMPS to display a custom error page.
Right now, because a 200 is returned even on non existing pages, you can not do something like this.
I would be quite happy to dig around with the CMPS php code if i got a hint where to look at.
Is it possible to return the correct status code in case a CMPS page does not exist?
I would love to see this functionality because when the correct status code is sent, it would be easy to use something like:
ErrorDocument 404 /index.php?page=error404in a .htaccess file and (at the same time) set up a error404 page inside CMPS to display a custom error page.
Right now, because a 200 is returned even on non existing pages, you can not do something like this.
I would be quite happy to dig around with the CMPS php code if i got a hint where to look at.