Wordpress No 404
-
Hello,
My issue is that in wordpress 404 does not seem to be working properly.
An example of this is:
sitename.com/category/catname loads the files in that category but I can also type
sitename.com/category/asdasfaasd/catname and it still goes to the posts in that category and does not 404. I can replace the misc text with anything and it does not 404.
My worry is that this can be used to exploit duplicate content.
I've looked at a couple of other sites and they do the same.
I'm using Yoast as my SEO plugin and my theme is elogix from themeforest.
I've tried disabling all plugins, cloudflare and changing theme and the same issue exists.
If anyone can help it would be extremely appreciated.
-
Hi Paul,
Will do. I forgot to mention but I actually found the flaw with the 404 when I was looking at the SEOmoz crawler statistics. It said that my sub categories were duplicate content as the pages it was referring to were assigned to multiple categories.
An example roughly based on my structure that it detected as duplicate content is the posts existing in: /category/seo/no1 and /category/seo/no2 so as a result it was duplicate content. I deleted the sub categories and assigned them all to just the SEO category and realised that the sub categories were still resolving so to troubleshoot this I decided to add a random prefix to the end e.g. /seo/asdnas and the address still resolved to the root category.
My theory was that if someone generated for example 100 urls and built links that google would see it as 100 duplicate pages due to the fact it was not 404ing or changing url when as you said 301ing.
I will close the thread and mark your question as good answer.
Cheers.
-
Hmmm... you should be seeing the URL change in the browser's address bar after the redirect pushes to the corrected URL, Luke. I certainly do in my installs that I confirmed it with.
At any rate, if this answered your question fully, would be a good idea to mark the question as "Answered" to help other users. I'd also love a mark as "Good Answer if you found it valuable.
And yea, absolutely - something new to learn every day. That's what I love about this business I only remember seeing this correction functionality mentioned once in passing in some documentation, but I couldn't find it by search even though i knew what I was looking for. So no wonder you couldn't scrounge it up.
Paul
-
Hi Paul,
Thanks for clearing that up for me!. When I was playing with it I was extremely confused as normally 301 actually redirects and shows the new URL.
As a temporary solution I ended up stripping the category base meaning it now 404s or 301s to the correct page if you try any of the things I originally mentioned.
I actually did a fair bit of research on it prior to asking on SEOmoz and could not find anything at all about it. I even asked a couple of web developers I know who use Joomla and Drupal and they could not figure it out either.
You clearly do learn something new every day as I had no idea about this prior to your reply.
Thanks for taking the time to answer my question and clearing it up for me, it's appreciated,
Luke
-
WordPress has this error-correction functionality built-in, Luke.
If you user a server header checking tool on that non-existent URL, you'll see that WP is automatically using a 301-redirect to push the user to the correct address each time - so no duplicate content or split authority problems at all.
Paul
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Moving html site to wordpress and 301 redirect from index.htm to index.php or just www.example.com
I found page duplicate content when using Moz crawl tool, see below. http://www.example.com
Intermediate & Advanced SEO | | gozmoz
Page Authority 40
Linking Root Domains 31
External Link Count 138
Internal Link Count 18
Status Code 200
1 duplicate http://www.example.com/index.htm
Page Authority 19
Linking Root Domains 1
External Link Count 0
Internal Link Count 15
Status Code 200
1 duplicate I have recently transfered my old html site to wordpress.
To keep the urls the same I am using a plugin which appends .htm at the end of each page. My old site home page was index.htm. I have created index.htm in wordpress as well but now there is a conflict of duplicate content. I am using latest post as my home page which is index.php Question 1.
Should I also use redirect 301 im htaccess file to transfer index.htm page authority (19) to www.example.com If yes, do I use
Redirect 301 /index.htm http://www.example.com/index.php
or
Redirect 301 /index.htm http://www.example.com Question 2
Should I change my "Home" menu link to http://www.example.com instead of http://www.example.com/index.htm that would fix the duplicate content, as indx.htm does not exist anymore. Is there a better option? Thanks0 -
404 or 410 status code after deleting a real estate listing
Hi there, We manage a website which generates an overview and detailpages of listings for several real estate agents. When these listings have been sold, they are removed from the overview and pages. These listings appear as not found in the crawl error overview in Google Search Console. These pages appear as 404's, would changing this to 410's solve this problem? And if not, what fix could take care of this problem?
Intermediate & Advanced SEO | | MartijntenCaat0 -
Indexed Answer Box Result Leads to a 404 page?
Hey everyone, One of my clients is currently getting an answer box (people also ask) result for a page that is no longer live. They migrated their site approximately 6 months ago, and the old page is for some reason still indexed in the (people also asked) results. Weird thing is that this page leads to a 404 error. Why the heck is Google showing this? Are there separate indexes for "people also asked" results, and regular organic listings? Has anyone ever seen/experienced something like this before? Any insight would is much appreciated
Intermediate & Advanced SEO | | HSawhney0 -
Whats the Best way to Protect Wordpress Website from Getting Hacked.
Hi All, I just like to know whats the best way to protect wordpress website for getting hacked. I tried using Wordfence but nothing much happened. I m in shared Host and when ever there is a sign of attack my hosting company takes the site off which affects my site ranking a lot. I m trying to keep all my plugins updated but still it happens . Like to know what other people do . I am open for Paid tool suggestion as well. Thanks
Intermediate & Advanced SEO | | Verve-Innovation0 -
How to work with schema.org together with Wordpress
Hi schema.org seems to be quite simple when working with a plain HTML website. You just look up the code you need on schame.org and implement it in the HTML file as required. But when using Wordpress things become more complicated. I have to use plugins for schemata and then I can only use the schemata that exist in those plugins which are very limited. How do you deal with this issue? Cheers Marc
Intermediate & Advanced SEO | | RWW1 -
How Do I Generate a Sitemap for a Large Wordpress Site?
Hello Everyone! I am working with a Wordpress site that is in Google news (i.e. everyday we have about 30 new URLs to add to our sitemap) The site has years of articles, resulting in about 200,000 pages on the site. Our strategy so far has been use a sitemap plugin that only generates the last few months of posts, however we want to improve our SEO and submit all the URLs in our site to search engines. The issue is the plugins we've looked at generate the sitemap on-the-fly. i.e. when you request the sitemap, the plugin then dynamically generates the sitemap. Our site is so large that even a single request for our sitemap.xml ties up tons of server resources and takes an extremely long time to generate the sitemap (if the page doesn't time out in the process). Does anyone have a solution? Thanks, Aaron
Intermediate & Advanced SEO | | alloydigital0 -
Do follow or no follow on wordpress site?
I have read many different opinions on what links to make do follow on a wordpress website versus which ones to leave as no follow. (internal and external) There does not seem to be any consensus among the inputs to date. Any perspectives on this would be appreciated. thanks
Intermediate & Advanced SEO | | casper4340 -
Duplicate WordPress Home Page Issue
I have an issue where I've created a site, (www.tntperformance805.com), using WordPress as a CMS. I enabled the option to use a static page as the home page, and created that page as /home. Well, now the issue that exists is that Google is indexing both www.tntperformance805.com, and www.tntperformance805.com/home/. I've already setup a 301 redirect, pointing /home/ to the main domain, and even have rel=canonical set up automatically, pointing every page to the www version of that particular page. However, Google Webmaster Tools is still reporting the pages as having duplicate page titles and descriptions. I've even had the page removed from Google's cache and index. I'm assuming Google is not considering the 301 redirect, even though it's setup properly. Should I add rel="canonical" href="http://www.tntperformance805.com" /> to the body of the /home/ post, to ensure that it is giving credit to the main domain? I am assuming the page is only redirecting to , as that's the www version, but I thought the 301 redirect would enforce that the search engines should give all credit to the main domain. Thanks in advance for the help everyone. I look forward to some insightful feedback. Best Regards, Matt Dimock
Intermediate & Advanced SEO | | National-Positions0