Advertisement:

Author Topic: 404 error in google webmaster  (Read 2718 times)

carsangrah123

  • Jr. Member
  • **
  • Posts: 59
  • www.carsangrah.com
404 error in google webmaster
« on: December 10, 2013, 02:30:02 pm »
I have created an used car website www.carsangrah.com. All links are working fine, But still google webmaster tool shows 404 error in some links and does not crawl them. http://www.brokenlinkcheck.com/ also shows same 404 error, But links are working properly. Please suggest the solution.
Thanks.

Aficionado

  • Guest
Re: 404 error in google webmaster
« Reply #1 on: December 10, 2013, 04:52:32 pm »
Empty categories.

Osclass form some reason, shows a HEADER of 404. Not a page, an HTTP HEADER.


carsangrah123

  • Jr. Member
  • **
  • Posts: 59
  • www.carsangrah.com
Re: 404 error in google webmaster
« Reply #2 on: December 11, 2013, 07:45:55 am »
thanks for your valuable comment. Can you please suggest some solution.
Thanks

Aficionado

  • Guest
Re: 404 error in google webmaster
« Reply #3 on: December 11, 2013, 12:29:51 pm »
Try this:


Locate your 'search.php' file located here:
/oc-includes/osclass/controller/search.php

Find this line of code:
                if( count($aItems) === 0 ) {

And replace it with this line of code...
                if( count($aItems) === -1 ) {


carsangrah123

  • Jr. Member
  • **
  • Posts: 59
  • www.carsangrah.com
Re: 404 error in google webmaster
« Reply #4 on: December 11, 2013, 02:15:49 pm »
I tried this. Still I am getting 404 in http://www.brokenlinkcheck.com/

Try this:


Locate your 'search.php' file located here:
/oc-includes/osclass/controller/search.php

Find this line of code:
                if( count($aItems) === 0 ) {

And replace it with this line of code...
                if( count($aItems) === -1 ) {

Aficionado

  • Guest
Re: 404 error in google webmaster
« Reply #5 on: December 11, 2013, 02:21:51 pm »
Checked some pages of yours with

http://web-sniffer.net/

and seem to work ok.

No errors or 404.

carsangrah123

  • Jr. Member
  • **
  • Posts: 59
  • www.carsangrah.com
Re: 404 error in google webmaster
« Reply #6 on: December 12, 2013, 07:23:10 am »
Thanks. Some of the links are working with no 404 error. But some links like http://www.carsangrah.com/buy-used-cars_haryana-r781502 are giving 404 in web-sniffer while this is working fine.

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: 404 error in google webmaster
« Reply #7 on: June 10, 2014, 03:15:27 pm »
If not a 404, which other response should be? is it ok for google to have several urls with the same content (no results) ?

Thanks

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: 404 error in google webmaster
« Reply #8 on: June 10, 2014, 03:38:31 pm »
I thought of a replacement code, but turned out this is not so easy. The best candidate could be 204:

http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#2xx_Success

but then again, I am not an expert on this and might be wrong here. Because, page sure exist, but the items not (empty), so 404 is deffinitevely a wrong choice here.

Regards

mandi007

  • Full Member
  • ***
  • Posts: 204
Re: 404 error in google webmaster
« Reply #9 on: January 12, 2015, 11:12:55 am »
did any one find a solution......56k pages are showing 404 error and page exits with no results

pexxu

  • Newbie
  • *
  • Posts: 17
Re: 404 error in google webmaster
« Reply #10 on: March 10, 2015, 06:52:41 pm »
It seems like we have to go the old fashion way, that means create ads for each category and subcategory and fill it with keywords that way google will index...

Aficionado

  • Guest
Re: 404 error in google webmaster
« Reply #11 on: March 11, 2015, 01:18:45 pm »
you can use 301 redirect for avoid 404 errors or not found pages. it is good work for SEO point of view.

And i think you are a clever spammer.