Wordpress 404 override - wordpress

I've got a Wordpress site running here which displays custom content if a page/blog post isn't found. It works perfectly on the front end - but when the site loads, it sends a 404 status for all of the custom content pages.
As a consequence, none of the custom content pages are crawled by Google, which isn't ideal.
I looked at disabling the 404 redirect function in wp-app.php (lines 1277-1286) but this didn't solve the problem. I'm wondering if the status_header function (line 1652 onwards in wp-includes/functions.php) would be a better place to go, but I've had no luck with it either.
Anyone come across this, and could anyone offer any ideas?

Related

How to fix these 404 errors in WordPress?

So, I've been looking for a way to sort out these 404 errors on a WordPress site. This log is compiled using the Redirection plugin for WP. Anyway, how would you go about sorting out these 404 errors? Any advice would be greatly appreciated.
So, these mostly appear to be bots scraping the site (atleast it appears that way from the User Agent Info.) Where are they getting these URL's?
What you can do you can redirect these links to the home page best way to make it SEO friendly there are so many ways you can archive this by adding code in htaccess or this plugin can be most useful in this issue:
All 404 Redirect to Homepage
Redirect 404 Error Page to Homepage or Custom Page with Logs

404 on taxonomy links on Wordpress site

I've read a lot of different posts online on this, but nothing seems to be working.
I'm working on a Wordpress site. Despite individual post links working exactly as intended, (e.g. http://ubicomplab.org/people/jwu), the main taxonomy pages, http://ubicomplab.org/people, etc. redirect to 404.
I have tried modifying .htaccess, deleting .htaccess, disabling plugins, but nothing seems to work. I have also tried rolling back the contents of wp-content to way before this error started occurring, to no effect.
Upon trying to "Edit Page" the 404ing link above, I get an error about how "post 422" is in the trash. There are no posts in the trash, however. I'm not sure why it's specifically post 422.
Could there be something wrong on the server side? If so, what could I do? I have access to the kettle server, but I'm not sure where to begin looking.
Try savings your permalinks again, sometimes this works for me.

Drupal Multilingual Page does not show 404 on not existing subpages

I have a Webportal running with Drupal7, which is in multiple Languages. There's the Problem, that if I have the page "/test" and go on the browser to "/test/asdf" or /TeSt" I don't get a 404 - I get the page delivered as usual.
Does anyone know, why this happens?
for fixing this problem there is a module:
http://drupal.org/project/views404
http://drupal.org/node/1131834#comment-6461198

How to set a 404 error page on wordpress/fishpig for magento

I've done a fully integration of a Wordpress in a Magento shop with FishPig, everything is working fine except that I can't find where or how to find/edit/set a custom 404 error page.
It's my first time using Magento and my php knowledge is very limited so any help would be much appreciated.
Btw, That's the default no-route error I get: http://doshaburi.com/blog/category/xx/
Thanks.
This isn't possible via a configuration setting in the extension. What you could do though, is include a .phtml file in your 404 page and then display a different piece of content if the URL starts with the blog route (eg. /blog/.*) to every other request.

Dead links and Missing pages are redirecting itself to Main Page with certain exceptions - Wordpress Related

I hope my problem can be solved through this forum
I wanted my site to handle dead and non-existent links by displaying the 404 error page- Instead I noticed that it redirects these non-existent links and missing pages to the main page like for example - www.mysite.com/non-existent-link (redirects to) www.mysite.com/non-existent-links with no apparent changes to the url.
Another problem is, when accessing the following URL: mysite.com/genre/comedy - the intended page loads up fine but upon accessing mysite.com/genre it redirects to the homepage when it is supposed to display the error page
Only Exception when the error page actually works is when, links such as these www.mysite.com/+16476567 or www.mysite.com/444 or mysite.com/genre/gibberish are in use.
I have spent hours modifying the htaccess with different parameters, used default setting for permalinks and tried tweaking the template. But all in vain
Wish someone could throw some light on the problem

Resources