Jump to content

Search the Community

Showing results for tags '404'.

  • 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 5 results

  1. So while editing my .HTACCESS file I added the proper lines to redirect users that encounter errors like 404 and 500. It works like a charm if I tell it to display a specific message. However if I tell the file to redirect users to a custom error page it fails. When testing out my 404 redirect I get this: Not Found The requested URL /143/test.php was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache/2.4.9 (Win64) PHP/5.5.12 Server at localhost Port 80 As you can see it is stating that my ErrorDocument is not found BUT if I type my ErrorDocument URL in I can go to it myself. My .HTACCESS file looks like this: ErrorDocument 400 /error.php ErrorDocument 401 /error.php ErrorDocument 403 /error.php ErrorDocument 404 /error.php ErrorDocument 500 /error.php ErrorDocument 502 /error.php ErrorDocument 504 /error.php # supress php errors php_flag display_startup_errors off php_flag display_errors off php_flag html_errors off # enable PHP error logging php_flag log_errors on php_value error_log PHP_errors.log NOTE: I am using localhost (WAMP). Thanks.
  2. Hey, I created a custom 404.php page and have the following code in the .htaccess to direct any non-existent pages to the custom 4040 page, ErrorDocument 404 http://www.website.com/404.php So it works great but when I search the website on google, 404.php is listed under the sitelinks. So I searched Google and came across their advice for what to do with a custom 404 page showing up in search and how to make it not show up. So then I searched Google for "actual 404 https status code" where there is lots of information about how it should work, but couldn't find any information about how to implement it. I have the 404.php page demoted under the sitelinks section of Google Webmaster Tools and there is a 0 soft 404 error under crawl errors. But do I need to put a line of code in the .htaccess file to show that an actual 404 error is there when on 404.php page. Also, under Blocked URLs in webmaster tools there is this code, User-agent: * Crawl-delay: 10 on the robots.txt page and I'm not sure what that is. Thanks for your time and help in advance!
  3. Hi there, I am feeling very silly asking for help on this as it seems it would be PHP 101...: I have a website which uses PHP pages, my main site loads fine, however when i click any of the links in the menu (which should go to PHP pages) it returns a 404. For example, I have a PHP file on my root called properties.php which it should be loaded when i click the Properties link, but it doesn't. i also have an /admin directory, which contains php files (used for administering content), but it doesn't even load the login screen, instead takes me straight in! I have since deleted the admin folder to be safe just now. I contacted the hosting company in case i got the root path wrong (Godaddy), but they prompty/rudely told me it wasn't their problem I know this is really basic stuff, but if someone could point me in the right direction, i'd appreciate it. Thanks in advance! Jamie
  4. I how a problem that if someone goes in myurl.../content.php he can see my content.php file but I would like that it could bee seen only when I include that in myurl.../index.php. How it could be done that if someone goes to myurl.../index.php/content.php he is redirected to error 404 but if I include that file somewhere then it does not redirecting.
  5. 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.