numbers after wordpress urls not showing 404 - wordpress

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.

Related

wordpress doesn't return 404 if number in url

i have a worpress website that works fine with 404 not founding error if u type
mydomain.com/blog/bla-bla
but there is a little strange thing if u type
mydomain.com/blog/1232424
or any number format . it wouldn't return a 404 page and just load blog page like as always,
any hint would be help.
for more information i must say , i'm handling redirect page to 404 by a plugin and a costume 404 page that i've created.

Redirect 404 pages in wordpress

Few weeks back I made changes to my wordpress site ctageory slug redirecting https://example.com/category/catname/ to https://example.com/catname/ to strip the 'category' base slug. Due to some restraints again I changed it back to normal as https://example.com/category/catname/
Now I am having number of 404 category archive pages crawl errors in Google Webmaster Tools, the errors like below:
1. https://example.com/catname/page/1/?
2. https://example.com/catname/page/2/?
How can I redirect these /catname/page/(.*) to /category/catname/page/$1. I have tried redirecting with htaccess and wordpress redirect plugins but nothing seemed to be working and resultedmost browsers saying "too many redirects" and the page didn't load.
I have been struggling with it. Any help shall be appreciable.
Thank you very much

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

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

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