Loading...
 
Skip to main content

Features / Usability


SiteMap: error page returns a status of 200

Google Sitemaps https://www.google.com/webmasters/sitemaps/verify?hl=enQuestion 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/Question although I can FTP into the structure.

What needs to be changed to make Google happy? Regards Paul

Your webhost needs to change the headers on the Error Documents.

Or even better Change to a better host and tell them they suck at supporting google sitemaps 😂

Damian

> Your webhost needs to change the headers on the Error Documents.
>

Thanks Damian,

Tactfully put your comment to my webhost and got the following reply:

''You have to turn the "Use Search Engine Friendly URLs" option OFF in your
tikiwiki configuration. That always fixes this particular glitch. ''

I've just read Ricks99 reply (thanks Rick) ~ wonder what an .htaccess file is ~ just going off to find out. Looks like a good response though so I'll try that before looking for the above option switch.

Thanks both. Paul

> > Your webhost needs to change the headers on the Error Documents.
> >
>
> Thanks Damian,
>
> Tactfully put your comment to my webhost and got the following reply:
>
> ''You have to turn the "Use Search Engine Friendly URLs" option OFF in your
> tikiwiki configuration. That always fixes this particular glitch. ''

ROFLMAO Tiki doesnt have a search engine friendly url option

😂😂😂😂😂😂😂😂😂

Damian


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 pageQuestion.

HTH,

RickQuestion


> Google Sitemaps https://www.google.com/webmasters/sitemaps/verify?hl=enQuestion 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/Question although I can FTP into the structure.
>
> What needs to be changed to make Google happy? Regards Paul

> Simply redirect your standard 404 error page to a wiki-specific one.

That was not a cure ~ yet!

I found a htaccess file at /httpdocs/tiki/doc/htaccess ~ was that the right one?

I added these lines in red at the end of the document

All square brackets replaced by curley brackets so it will print

{QSA,L}

# todo add support for all characters allowed in a Wiki name
# make sure this is the last rule!
RewriteRule ({-_\+A-Za-z0-9}+)$ /tiki-index.php?page=$1
{QSA,L}

Code
Error Document 404 http://www.paulscorner.co.uk/tiki/tiki-index.php?page=404Question


Googel still reporting error 404 ~ bet I've put the addition in the wrong place? 😢

Paul

> > Simply redirect your standard 404 error page to a wiki-specific one.
>
> That was not a cure ~ yet!
>
> I found a htaccess file at /httpdocs/tiki/doc/htaccess ~ was that the right one?
>

you need to copy it to /httpdocs/tiki/ and rename it to .htaccess


Damian

> 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 pageQuestion.
>
> HTH,
>
> RickQuestion
>
>

That will display a 404 custom page, but wont set the html header that googles looking for to a 404

Damian

>
> That will display a 404 custom page, but wont set the html header that googles looking for to a 404
>
> Damian

Yes, but because it is now serving a "regular" page (not a 404) page, it is OK to have the header be 200 and noto 404.

s21023: Place the .htaccess file in your site's root.


HTH,
-RickQuestion


Bumping SiteMap: error page returns a status of 200 with a slightly more robust htaccess snippet ("inspired by" http://www.funkypenguin.co.za/search_engine_friendly_urls_with_tikiwikiQuestion ).

The snippet is missing the final rewrite rule for wiki pages, but that can be found from Funky Penguin and the TikiWikiRewriteRule page.

-Tagg

The second file attachment avoids an odd issue with a RewriteRule for a test pattern containing a "+" character, specifically: the "contact+us" pattern. Looking again at the "contact+us" pattern, I see that the issue is a missing delimiter. The pattern would be correctly written as: ^twiki/contact\+us$

> Bumping SiteMap: error page returns a status of 200 with a slightly more robust htaccess snippet ("inspired by" http://www.funkypenguin.co.za/search_engine_friendly_urls_with_tikiwikiQuestion ).
>
> The snippet is missing the final rewrite rule for wiki pages, but that can be found from Funky Penguin and the TikiWikiRewriteRule page.
>
> -Tagg

In order to attain consistent SEF URLs AKA human-friendly Web surfing, the "menu options" URLs may need to be edited, and some editing of TPL files may also be necessary. (Aside: it might be nice to have TPL href values read from the "menu options" table.) For example, here is a modified TPL for Search Results in which "tiki-searchresults.tpl?highlight=" is replaced with "search," and "tiki-searchresults.tpl" is replaced with "search".