Default Robots.txt in WordPress - Should i change it??
-
I have a WordPress site as using theme Genesis i am using default robots.txt. that has a line Allow: /wp-admin/admin-ajax.php, is it okay or any problem. Should i change it?
-
Yes, we're a news site as well and in our case we want to make sure the low quality pages on TNW aren't indexed.
-
Thank you both for your response.
@Martijn your robots.txt is really a nice example but for my new site is it good practice to block this areas??
@Peter To be a safe side I was using the same robots.txt...
-
In addition of Martijn here is mine robots.txt:
User-agent: *
Disallow:Sitemap: http://peter.nikolow.me/sitemap_index.xml
But using Yoast - categories, tags, most of archives and other generated pages are disabled for indexing.
-
Hi Peter,
Usually I would say it's not enough as the robots.txt is forgeting about excluding the search pages and in most cases you want to make sure the WP core files are not included + tag pages. Take a look at our robots.txt to see what we've included there: http://thenextweb.com/robots.txt then you'll notice we include for example these:
User-agent: *
Disallow: ?p=
Disallow: /wp-includes/
Disallow: /wp-login.php
Disallow: /wp-admin/*
Disallow: /wp-register.php
Disallow: /wp-content/themes/icetea/includes/*
Disallow: /tag/
Disallow: ?s=
Disallow: /search/*Other cases in our robots.txt are very specifically in there because of our site and may not apply to others.
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
-
Ranking dropped after changing title tag
I recently changed my company's site homepage title tag to make it start with our target keyword. The page was originally at page #7 or #8 and dropped to page #17 directly after I changed the page title. Is this normal? Is it's a temporary drop or should I change it back to the previous title.
Intermediate & Advanced SEO | | ForumOne0 -
Google Change of Address for previously penalised website?
Hey guys Would you use the 'change of address' tool (https://support.google.com/webmasters/answer/83106?hl=en) for a site that was previously penalised, pointing it to the new URL? Cheers Jeremy
Intermediate & Advanced SEO | | jeremycabral0 -
Wildcarding Robots.txt for Particular Word in URL
Hey All, So I know that this isn't a standard robots.txt, I'm aware of how to block or wildcard certain folders but I'm wondering whether it's possible to block all URL's with a certain word in it? We have a client that was hacked a year ago and now they want us to help remove some of the pages that were being autogenerated with the word "viagra" in it. I saw this article and tried implementing it https://builtvisible.com/wildcards-in-robots-txt/ and it seems that I've been able to remove some of the URL's (although I can't confirm yet until I do a full pull of the SERPs on the domain). However, when I test certain URL's inside of WMT it still says that they are allowed which makes me think that it's not working fully or working at all. In this case these are the lines I've added to the robots.txt Disallow: /*&viagra Disallow: /*&Viagra I know I have the solution of individually requesting URL's to be removed from the index but I want to see if anybody has every had success with wildcarding URL's with a certain word in their robots.txt? The individual URL route could be very tedious. Thanks! Jon
Intermediate & Advanced SEO | | EvansHunt0 -
Need to change 1 million page URLs
Hey all, I have a community site where users are uploading photos and videos. Launched in 2003, back then it wasn't such a bad idea to use keywords/tags in the URLs, so I did that. All my content pages (individual photo/video) are looking like this: www.domain.com/12345-kw1-kw2-kw3-k4-k5 and so on. Where the 12345 is the unique content ID and the rest are keywords/tags added by the uploader. I would like to get rid of of the keywords after the ID in the URL. My site is well coded, so this can be easily done by changing a simple function, so my content page URLs become this: www.domain.com/ID What is the best course of action? 301 the KW URLs to non-KW version? Canonical? I really want to do this the proper way. Any advice is highly appreciated. Thanks in advance.
Intermediate & Advanced SEO | | mlqsko0 -
Dramatic Ranking Changes
Hi, My website is ranked on the 2nd page of Google for the /ncr. Last week suddenly it climbed up to the first page and I let my boss know about it with a quite enthusiasm and happiness 🙂 Then my boss didn't look at it on that day and next day our site was on the second page again and still is. Now I kind of lost reputation in the office, and people start questioning my comments. It wasn't a delusion but I would like to know what it was. No one does any SEO for this 10 years old site, and I've just started an SEO campaign about 1,5 months ago. And I really thought this is it, we are on the first page. But now we are back in to the 2nd page. Is waiting for couple days or weeks to Google to settle right approach for such cases? Or it was just a random bounce or coincidence? Never seen such thing, so I'm quite curious about your opinions or experience if you have.
Intermediate & Advanced SEO | | nunobaronio0 -
New Website. Changing TLD or not?
Hi, At my company we are making a new website because the days of the old one are numbered. We already decided that the folder structure will be changed so we have more "clean" url's. Now we also would like to change from .net/nl to .nl . Since we already are redirecting all url's (>10.000), we think this is the moment to switch the TLD. What do you guys think? Is their anyone who has some kind of experience/tip they would like to share?
Intermediate & Advanced SEO | | SEO_ACSI0 -
Changing the relevance of the homepage
One of my new clients is hell bent on changing the content of their homepage. They are one of the world's largest resort companies. The site is graphics-heavy (with embedded text), and barely contains any content. I haven't started any of the on-page optimization yet, but when I do, it will be a major overhaul. Despite the poor on-page of the site, they are getting great rankings and a ton of traffic due to number and quality of their backlinks and domain authority. My concern is this: they want to change the homepage and make it into a "vacation sweepstakes" type of page. Their logic seems to be that they will generate a lot of interest on the site and get people excited about winning an expensive dream vacation, which is all fine and dandy, however, my feeling is that this will change the relevance of the page. So, instead of pitching their ownership-based program, now, they will be promoting vacation contests. So here's the stupid question: would this have the potential to negatively affect their search engine results or the Domain Authority? I'm thinking of suggesting to them a less drastic approach. Perhaps something like the lightbox sweepstakes overlay on marshallsonline.com. At least, this way, we can keep the current homepage and improve on it, rather than going into another niche. Any feedback or suggestions on this is greatly appreciated!
Intermediate & Advanced SEO | | ollan0