Robots.txt Help
-
I need help to create robots.txt file.
Please let me know what to add in the file. any real example or working example.?
-
Michael, from what i can tell, your website is built using WordPress. We typically recommend installing the Yoast SEO plugin and using that--which will help with your robots.txt file. If you need more information, take a look here: https://yoast.com/wordpress-robots-txt-example/
Generally, most of your site won't need to be disallowed in the robots.txt file, unless you're using tags and categories on your site. Yoast typically helps disallow the proper directories that you need to disallow.
One thing that you need to be aware of is the fact that you don't want to disallow your .CSS or .JS files on your site, many of the themes nowadays will put those files in your wp-admin folder--which by default typically gets disallowed.
-
This is the site I used to really get a good understanding of how to create a robots.txt file: http://www.robotstxt.org/
-
A very basic robots.txt file would look something like the below
User-agent: *
Sitemap: http://www.yourwebsite.com/sitemap.xml
Disallow: http://www.yourwebsite.com/url-you-dont-want-indexed
Disallow: http://www.yourwebsite.com/another-url-you-dont-want-indexedHope that helps
-
Include sitemaps. Disallow: Pages that you don't want indexed: search pages, login pages, core admin files.
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
-
Migrated Domain, 90% Drop in Organic Traffic, HELP!!!!
One week ago we migrated our old domain www.nyc-officespace-leader.com to https://www.metro-manhattan.com/. Our organic search traffic from Google has dropped about 90%. Is this normal? If so, how long should it take to recover? We filed a submitted a domain change request on Webmaster tools one week ago. We are noticing that many of the www.nyc-officespace-leader.com pages are still indexed which seems strange after a week. To complicate things, we filed a disavow file on April 9th for spammy links that pointed the NYC site. We filed the identical disavow of those links to the new Metro domain to ensure low quality links don't point to the new domain. Prior to making the domain change request, we migrated 30-40 non critical pages from NYC to Metro domains. Webmaster Tools indicated that the traffic was normal on the migrated pages. We then migrated remaining pages and filed the domain change request on April 4th. It is after April 4th that traffic and ranking declined. I would like to mention that there was no change in content; identical content was migrated from Metro to NYC This does not seem normal. Research prior to the migration indicated that if proper steps were taken it should proceed with limited disruption in traffic and ranking. Any ideas on how to remedy this situation? Thanks, Alan
Intermediate & Advanced SEO | | Kingalan10 -
What does Disallow: /french-wines/?* actually do - robots.txt
Hello Mozzers - Just wondering what this robots.txt instruction means: Disallow: /french-wines/?* Does it stop Googlebot crawling and indexing URLs in that "French Wines" folder - specifically the URLs that include a question mark? Would it stop the crawling of deeper folders - e.g. /french-wines/rhone-region/ that include a question mark in their URL? I think this has been done to block URLs containing query strings. Thanks, Luke
Intermediate & Advanced SEO | | McTaggart0 -
Use Canonical or Robots.txt for Map View URL without Backlink Potential
I have a Page X with lots of unique content. This page has a "Map view" option, which displays some of the info from Page X, but a lot is ommitted. Questions: Should I add canonical even though Map View URL does not display a lot of info from Page X or adding to robots.txt or noindex, follow? I don't see any back links coming to Map View URL Should Map View page have unique H1, title tag, meta des?
Intermediate & Advanced SEO | | khi50 -
New domain purchase 301 and 404 issues. Please help!
We recently purchased www.carwow.com and 301 redirected the site to www.carwow.co.uk (our main domain). The problem is that carwow.com had URLs indexed like www.carwow.com/a-b-c the 301 sends them to carwow.co.uk/a-b-c which obviously doesn't exist so is a 404! What should be done in this situation? Should it be ignored and not re-directed at all, or is there a way to delete/disavow these dead pages? An SEO has advised we redirect all pages to the homepage, but won't that mess up the link profile? Any advice would be great!
Intermediate & Advanced SEO | | JamesPursey0 -
KW density and idiot clients. HELP!!!!
I have a client who insists on using KW1 @ a 3% rate in a 600-word piece, aka 18 references to KW1 in a two page piece. I upped the KW1 count to 18, but in doing so, added 100 words of text, getting the piece to 700 words. Now the client wants 21 KW1 appearances to maintain that 3% density. If I add 3 more KW1's, I'll up the word count again, requiring more KW1's to hit the 3% mark. Any suggestions for solving the never-ending problem of KW density and idiot clients? Thanks in advance. Paul
Intermediate & Advanced SEO | | webwordslinger0 -
Do I use a .org or .co.uk domain to help UK rankings?
Hi Guys, I own to good domains one with a .ORG and the other .CO.UK Can anyone advise which one is best to use to help UK rankings? Or does it not make much difference?? Thanks guys Gareth
Intermediate & Advanced SEO | | GAZ090 -
Review of on page SEO - Please help
Hi I am new to SEOmoz but can see a lot of great information going back and forth. I am looking for a little help with the SEO on our site and looking for suggestions on what to do to improve it. We have some pages where we aggregate content from our database such as this: http://www.touristlink.com/india/nagpur/cat/temples.html It would seem that "Temples in Nagpur" is not that competitive of a term but we dont show up until page 4. Any on page suggestions on what we could do to improve? Or any mistakes we are making. All the content on the site is fairly new as in 6 months even though the site has been established and online for a number of years. We have not done any specific linking building for the term "Temples in Nagpur" Any suggestions on the overall structure of the site would also be great. Thanks in advance.
Intermediate & Advanced SEO | | DavidUrmann0 -
Help! Why did Google remove my images from their index?
I've been scratching my head over this one for a while now and I can't seem to figure it out. I own a website that is user-generated content. Users submit images to my sites of graphic resources (for designers) that they have created to share with our community. I've been noticing over the past few months that I'm getting completely dominated in Google Images. I used to get a ton of traffic from Google Images, but now I can't find my images anywhere. After diving into Analytics I found this: http://cl.ly/140L2d14040Q1R0W161e and realized sometime about a year ago my image traffic took a dive. We've gone back through all the change logs and can't find where we made any changes to the site structure that could have caused this. We are stumped. Does anyone know of any historical Google updates that could have caused this last year around the end of April 2010? Any help or insight would be greatly appreciated!
Intermediate & Advanced SEO | | shawn810