• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Soft 404

Started by shtefcs,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

shtefcsTopic starter

I was reading Google Webmaster tools, where I got reported lot of Soft 404 Errors, for the videos I deleted.

What Google saying is that is not enough "But it's important to remember that it's not enough to just create a page that displays a 404 message. You also need to return the correct 404 or 410 HTTP response code.".

Read the whole post about Soft 404 https://support.google.com/webmasters/answer/181708?hl=en&ctx=tltp

It's on my vibe 3.3 version, but I am sure it's on every version same.

I am highly recommend to look into this and fix it. This can me the main reason why my site dropped in Google Search.
  •  

PHPVibe A.

You can place and header in tpl/main/404.php

header("HTTP/1.0 404 Not Found"); 


at the top :)

shtefcsTopic starter

Tnx for replay Alex.

Btw, did you updated this on 3.6, or I need to add it manually ?
  •  

PHPVibe A.

I don't know, have to check, didn't make any code myself for 3.6

shtefcsTopic starter

  •  

PHPVibe A.

It's not in there. tpl/main/404.php

shtefcsTopic starter

Alex,

This is whole code of 404.php. Can you edit the code belove and put ur line exactly where it need to be ?

<?php  the_header(); 
the_sidebar();
?>
<div class="error-info main-holder pad-holder span8 nomargin top10">
<h3><?php echo _lang("404"); ?></h3>
<h4><?php echo _lang("oops! page not found"); ?></h4>
<a class="button-center" href="<?php echo site_url(); ?>"><?php echo _lang("Back to home"); ?></a>
</div>
<?php  the_footer(); ?>


You should update this in next patch, it's very important.

Tnx
  •  

PHPVibe A.

<?php header("HTTP/1.0 404 Not Found"); 
the_header();


:)

shtefcsTopic starter

  •  

Similar topics (7)