Loading...
 
Features / Usability

Features / Usability


Re: SiteMap: error page returns a status of 200

posts: 3665 United States

Simply redirect your standard 404 error page to a wiki-specific one. In your .htaccess file add:

Image
Copy to clipboard
ErrorDocument 404 http://www.yourdomain.com/tiki-index.php?page=404


Then, create a new wiki page in your site with the page name 404.
This way the 404 page will return the same header status as the rest of your site's pages.

Here's my custom 404 page.

HTH,

Rick


> Google Sitemaps https://www.google.com/webmasters/sitemaps/verify?hl=en says:-
>
> We've detected that your 404 (file not found) error page returns a status of 200 (OK) in the header.
> This configuration presents a security risk for site verification and therefore, we can't verify your site. If your web server is configured to return a status of 200 in the header of 404 pages, and we enabled you to verify your site with this configuration, others would be able to take advantage of this and verify your site as well. This would allow others to see your site statistics. To ensure that no one can take advantage of this configuration to view statistics to sites they don't own, we only verify sites that return a status of 404 in the header of 404 pages.
>
> My Tiki was set up by my host, http://www.webulex.com/ although I can FTP into the structure.
>
> What needs to be changed to make Google happy? Regards Paul

There are no comments at this time.