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
-
400+ deleted pictures, 404 on URLs, can they be deleted without penalty?
A client had a website redesign and over 400 pictures (she's a photographer) were lost. The URL's (ending in .png) are hanging out there and according to the site scan, they have a matching current URL. Since the pictures are gone can the URL be deleted?
Intermediate & Advanced SEO | | fcromwell0 -
Duplicate Errors from Wordpress login redirects
I've some Duplicate issues showing up in Moz Analytics which are due to a Q&A plugin being used on a Wordpress website which prompts the user to login. There's a number of links looking like the one shown below, which lead to the login page: www.website.com/wp-login.php?redirect_to=http%3A%2F%2Fwww.website.com%question%2.... What's the best way to deal with this? -- extra info: this is only showing up in Moz Analytics. Google Webmaster Tools reports no duplicates.. I'm guessing this is maybe down to the 'redirect_to' parameter being effective in grouping the URLs for Googlebot. currently the wplogin and consequent redirects are 'noindex, follow' - I cannot see where this is being generated from in wp-login.php to change this to nofollow (if this will solve it).
Intermediate & Advanced SEO | | GregDixson0 -
Webmaster or analytics can we find pages that are 404
Hi, Webmaster or analytics can we find pages that are 404 404 landing pages? From which source to what page and from page i get the 404 error when someone accesses my webpage? Need to know which pages are live on sites that are broken in my site Thanks
Intermediate & Advanced SEO | | mtthompsons0 -
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 -
How to redirect whole site to home page without breaking wordpress
Hi all I had a phpprobid site which was heavily indexed but got hacked. I have deleted the old site and installed wordpress and a holding page. I can't work out how to 301 redirect all the old indexed pages to the home page without the existing wordpress redirect. Anyone care to help?
Intermediate & Advanced SEO | | RaceMedia0 -
Should I remove 404 urls in webmaster tools?
I've recently removed a lot of category pages so should I remove the urls in webmaster tools or let them drop out of the index naturally?
Intermediate & Advanced SEO | | SamCUK0 -
Easy way to change wordpress category titles. Currently categories are appearing with the same title?!
I'm working on a wordpress adult dating review site and have started to set up categories for each of my main keywords. I have also started to add sub categories by county and town and so far have done so for the counties of 'Lincolnshire' and 'Derbyshire'. The problem is though that for each of my subcategories the page titles are appearing the same. For example: www.mysite.com/category/online-dating/lincolnshire/spalding (root category online dating) shows the title as 'Spalding'. www.mysite.com/category/adult-dating/lincolnshire/spalding also has the title 'Spalding' even though it's root category is different (adult dating). It's probably easier to go to http://www.top-10-dating-reviews.com to see how it's set up. If you click in the category text in the top menu and navigate to dating/derbyshire/alfreton for example and then adult dating/derbyshire/alfreton you'll notice the page titles are the same. I use all in one SEO pack and have rewrite titles checked with category titles set to %category_title% | %blog_title%. I also use category SEO updater. In order to prevent duplicate content issues how can I simply make the title of each category category root title/category subtitle(county)/category subtitle 2(town). The title of each category page would then read for example Online Dating Lincolnshire Spalding.
Intermediate & Advanced SEO | | SamCUK0 -
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