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

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

Related

numbers after wordpress urls not showing 404

I just notice a bug in my WordPress sites when I am adding any number after a blog post or page URL it's not showing any 404 error or its just a valid page
like I have a site
https://www.gryffin.com/ so if I visiting this URL https://www.gryffin.com/features/ and adding any number after this URL https://www.gryffin.com/features/98989 like this it should show the error of page not exist but it's not giving this error I check other WordPress sites have the same issue I think its not good on SEO point of view can anybody give me solution of it.

Can't throw a 404 error with urls that start with a question mark

So recently I updated my site from Joomla to Wordpress. (best decision of my life...seriously)
All of my old Joomla links were formatted with a ? right after my domain name like this: www.example.com/?blah
Now when I switched to Wordpress, I'm using pretty URLs that are formatted like this : www.example.com/blah
Now googles got all the old Joomla urls still indexed so when searched for it still gives you the old URLs. In my head those Joomla URLs should throw a 404 error. But they don't! They just display the homepage.
For Example - if you go to www.example.com/blah it will throw a 404 error because that page doesn't exist, however if you go to www.example.com/?blah it will show that URL in the address bar, but display the homepage despite the fact that that page does not exist either.
So my questions are:
1) will google eventually dump those URLs in favor of my Wordpress ones? How will that hurt my SEO and page rank - does google still see that as a valid page and keep it in its index?
2) How do I force 404 errors for those URLs that don't exist anymore with a question mark.
(1) You'll have to get your sitemap redone and have GoogleBot reindex your site. Google Webmaster Tools should be the place to do that.
(2) You could redirect the invalid links to a 404 page using your .htaccess file

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.

Wordpress 404 override

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?

WordPress front page (homepage) fails to redirect when static front page is set

I have configured WordPress to display a static front page as described here:
http://codex.wordpress.org/Settings_Reading_SubPanel#Reading_Settings
When I save changes and try to visit my front page, my browser displays the following error:
"The page isn't redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete."
(source: flickr.com)
Changing cookies settings does not remedy the situation.
I'm using the theme Constructor (http://wordpress.org/extend/themes/constructor), which I suspect may be contributing to the problem.
How can I make WordPress properly display my front page?
create a page called home or whatever, go to
**Admin->Settings->Reading**
Change the......
Front page displays
1. Your latest posts
2. A Static Page
Select Static Page and from the dropdown select your newley created home/page.
if its not redirecting check your permalink settings...set it to default.
Check the homepage is working, re-apply any permalink settings you had..
If the page is still redirecting in a away it will never complete, then try opening your .htaccess file in the root of your wordpress site, delete anything inside and save it,
Again check your homepage... if its still not working, then it's def; down to your theme you are using, if there are particular theme templates for the homepage then that may be the cause.. no time to check the template myself just now, (maybe later)..
You could check the
admin->edit-page
you should see all your loaded pages on the site,
hover over the homepage listing and click "Quick Edit" onm the right hand side, have a look and check the template drop down menu for any homepage specific template that needs applied to that particular page, then click update and re-check the homepage status now.
"The page isn't redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete."
this problem happening when you redirect to a page who redirect you back. and it create indefinite loop of redirecting. So, the browser will trap and confuse and produce such error. Read you code again
maybe you need contact the theme author

Resources