Jump to content

Search the Community

Showing results for tags 'header response'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 1 result

  1. Hi, I am a bit of a noob when it comes to PHP so please bear with me. I can edit a bit, but I find it a bit trickier to write and I need a bit of advice. I manage a website for a friend of mine and they have had the site coded in PHP. I noticed that the site content was loading up correctly but Google is telling me that the pages cannot be found in Webmaster Tools. Upon investigation, I found that there was a 400 header response being served on every page via the header.php file: As I mention, I am no genius when it comes to PHP, but I changed the {header('HTTP/1.0 404 Not Found');} to {header('HTTP/1.0 200 Ok');} which solved the indexing issue for the pages within Google. However, I now have an issue with soft 404 errors whereby the error page is displayed for incorrect URL's, but they return a 200 response code. I am guessing that my change (although it papered the crack) was not the correct course of action. I have looked at other posts with similar issues but I have not been able to solve the issue. Can somebody point me in the right direction please? Thanks for your patience in advance.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.