hi all... pls help me to fix this..
google webmaster tools showing some of the links as '404' crawl errors in my wordpress site.... and its increasing day by day... actually there is no such links or files are present in the site...

here is the example for crawl errors...

http://www.asdasdasd.com/products.php   404     2/19/2013   Not found
http://www.asdasdasd.com/portfolio9.php 404     2/18/2013   Not found

any help... tnx in advnc

Dani AI

Generated

For : the crawl errors are usually fixable, but start by diagnosing before redirecting. As suggested, confirm Google really saw a 404 (not a temporary server hiccup) and find where the URL came from. Use a quick HEAD check and the Search Console “Linked from” / referrer data, then check server access logs for the exact referer and user-agent.

How to locate the source (practical steps)

  • Check Search Console: the “linked from” column points to the page Google followed.
  • Grep your access logs for the path and referrer.
  • Search the WordPress DB and theme files for references to the old .php paths; for example run a DB query like:
SELECT ID, post_title
FROM wp_posts
WHERE post_content LIKE '%products.php%' OR guid LIKE '%products.php%';
  • Crawl the site with a tool (Screaming Frog / site-crawler) to find internal broken links. External backlinks showing those URLs are normal — you can either ignore or redirect only when there is a clear replacement.

How to fix (choose one, depending on intent)

  • Permanent move => 301 to the correct new URL. Do this at server level (preferred) or with a well-maintained WP plugin (Redirection). Example Nginx rule:
location = /products.php {
  return 301 /products/;
}
  • Intentionally removed content => return 410 Gone so search engines drop it faster.
  • Do NOT mass-redirect every 404 to the homepage (creates soft-404s and confuses indexing). Also avoid redirect chains — always point old → final URL.

After you fix

  • Update or regenerate your sitemap, request a reindex in Search Console, then “validate fix” (or monitor the fixes) and watch logs for new hits. If crawl errors keep rising, look for plugins or themes that generate legacy links, or for external spam/hacked pages that are producing bogus URLs.

Note: ’s redirect idea is valid, but map each old URL to its correct new destination and verify with a HEAD request before marking as fixed.

Recommended Answers

All 4 Replies

Member Avatar for Member #949455

how to fix the crawl errors

The question you ask is more related to PHP section because you are using RE-mod on the htaccess file.

This is very simple relink those old two php file to the new ones (if there is no new one then relink to the new category in your website):

RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^products.php\.php$ "http\:\/\/www\.asdasdasd\.com\/products\.php" [R=301,L]

RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^portfolio9.php\.php$ "http\:\/\/www\.asdasdasd\.com\/portfolio9\.php" [R=301,L]

By doing that it will remove 404 error page and redirect to the new page.

You also need to relink your whole directary so things can go faster:

Redirect /path/public_html/ http://www.asdasdasd.com

Hello,

When you go to the url, is it really a 404 error. If so you have to track down the right feed location.

Member Avatar for Member #949455

but i still have a doubt, how to relink

You shouldn't used word doubt because you don't know.

There's a big difference between doubt and not knowing.

http://www.asdasdasd.com/portfolio/

What is portfolio?

Is it a page or a folder?

If it's a file is it: php or html?

Try this:

RewriteRule ^portfolio$ /portfolio9.php [L]
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.