Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Subscribe to HRA Now!

 



Are you a Google Analytics enthusiast?

Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE! 

 



 

 www.CustomReportSharing.com 

From the folks who brought you High Rankings!


Sponsored Content

 

 
 

Photo
- - - - -

404 To Show Php As Html


  • Please log in to reply
5 replies to this topic

#1 laka133

laka133

    HR 1

  • Members
  • Pip
  • 4 posts

Posted 01 December 2004 - 05:29 AM

Hi,

I've made a 404 to manage all links.I parse de url not found, look at a bbdd and then include(php) the correct page with the variables it corresponds.

My question is:
-Will google(or bots) see it as a 404? how can I make the same so that bots don't see a 404 but I can manage the pages as html the same way.

Thanks a lot.

#2 leadegroot

leadegroot

    Lea de Groot

  • Active Members
  • PipPipPipPipPip
  • 488 posts
  • Location:Brisbane, Australia

Posted 01 December 2004 - 06:13 AM

A 404 is defined by the http headers returned by the page (this is different to the head block of the page, recorded in the html).
One place you can check the headers for a page is http://www.delorie.c...eb/headers.html
The search engines will not see it as a 404 unless the http headers return a 404; it doesnt matter what the content (body or head in the html) return.
Plain vanilla HTML hosting often does not allow you to control this.

#3 laka133

laka133

    HR 1

  • Members
  • Pip
  • 4 posts

Posted 02 December 2004 - 11:41 AM

I still don't know how to change the 404 for a 200 . . ..
pls, need help, cause bots seems doesn't like it much

#4 Jill

Jill

    High Rankings Advisor

  • Admin
  • 32,316 posts

Posted 02 December 2004 - 11:42 AM

You want the bots to see it as a 404 or else you may run into problems with them indexing every single bad page.

#5 Randy

Randy

    Convert Me!

  • Moderator
  • 17,540 posts

Posted 02 December 2004 - 02:06 PM

What Jill said.

Unless your page names are the same with only the extension changed. If that's the case it's pretty easy to forward everything over and also provide a 301 server response that will aid the search engines in dropping the old page and indexing the new.

If the page names are all different it's a lot more painful. You would have to either let the 404's go and get the old pages dropped, or you would need to employ a (likely rather long) redirect at the server level.

Doing that after the 404 response has already been generated doesn't get the job done in my experience.

#6 leadegroot

leadegroot

    Lea de Groot

  • Active Members
  • PipPipPipPipPip
  • 488 posts
  • Location:Brisbane, Australia

Posted 02 December 2004 - 08:17 PM

laka133, you'll need to give us details of your hosting before we can advice you on *how* to implement 404s correctly smile.gif
It might be easier to ask your host, as they can tell you specifically, or immediately turn on the extensions you'll need to make it work.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users