• Home
  • /
  • Blog
  • /
  • How to Set up Robots.txt and a Custom 404 Page

It is important to have robot.txt in your domain as well as the subdomain. It helps the search engines to determine which pages aren’t to be crawled. Even if you don’t have any such pages which do not need to be crawled, then you can easily have an empty robot.txt file. This indicates the search engines that your website is fully accessible to them.

Now, How to Setup a robot.txt file on your website?

Step 1: Open any word file – notepad or Microsoft word file and save it as robots (all lowercase) and choose the file extension as .txt. (Make sure it is plain .txt)

Step 2: Add the following two lines:

# Group 1

User-agent: Googlebot

Disallow: /Googlebot/

# Group 2

User-agent: *

Allow: /

Sitemap: http://www.example.com/sitemap.xml

Here, Group #1 indicates that Google should not crawl the folder.

For example, if I want to restrict www.example.com folder,

then: http://example com/nogooglebot/

Although, by this action, all the other agents would still be able to access the entire site.

Step 3: Once its done, save the file to the root directory of your website. If your domain is www.example.com, then you will have to save the file at www.example.com/robots.txt

Step 4: Once you are successfully done with the whole process, check the file again for errors.

 

404 Page

You put a lot of effort into the website to create a flawless, efficient, and user-friendly website, but if someone mistypes the name of the page or clicks any bad link, he gets directed to a 404: page not found. For such users, you can create a much friendlier 404 page and address your visitors in a better way.

 

How to set up a 404 page?

Step 1: Create your page using your favorite HTML or any webpage editor.

Step2: Copy the HTML code. Open your website in a web browser, go to the about us page. Click “view” and hit the “source.” Click paste into your editor.

Step 3: Edit the page with a clear statement, advice to help them get back on the track, and an option to get in touch with the owner.

Step 4: Save the page as 404.html.

Step 5: Put the page on your website, and upload 404.html to the server.

Done!  You have created an effective 404 page.

 

Verdict:

The aforementioned were the steps to set up the 404 and robots.txt. To get more insightful tips on SEO, check small business SEO tips.  Also check tips for SEO of local business.

 

 

 


Tags


You may also like

InterServer.Net Web hosting: Our unbiased review

Benefits of hiring the Best SEO Company Canada

6 Tips on Content Writing for small business by Experts

How to write content for website

6 Small Business Mobile Marketing Strategies

10 Small Business Tips to get more traffic to Blog or Website

Page [tcb_pagination_current_page] of [tcb_pagination_total_pages]

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
__CONFIG_group_edit__{}__CONFIG_group_edit__
__CONFIG_local_colors__{"colors":{"70cf1":"Royal Blue"},"gradients":{}}__CONFIG_local_colors__

Our Guarantee “100% Traffic Boost in first one to three months” Else Next two months FREE !

Let us take our example when you searched for an affordable SEO service provider. Google served this page in top results. Google loves relevant, high-quality sites and only serves you the "BEST results."

We will utilize all our expertise to turn your website worthy of higher ranks, and you will love the surge in organic traffic in the first one to three (1-3) months.

What If? then you don't pay for the next two months of SEO. We will do it at no cost to you. 


100% Satisfaction Guarantee.

__CONFIG_colors_palette__{"active_palette":0,"config":{"colors":{"55c7c":{"name":"Main Accent","parent":-1}},"gradients":[]},"palettes":[{"name":"Default Palette","value":{"colors":{"55c7c":{"val":"var(70cf1)"}},"gradients":[]},"original":{"colors":{"55c7c":{"val":"rgb(19, 114, 211)","hsl":{"h":210,"s":0.83,"l":0.45}}},"gradients":[]}}]}__CONFIG_colors_palette__
FIND OUT HOW