Jump to content


Photo
- - - - -

How to add your site to google


  • Please log in to reply
No replies to this topic

#1 shub

shub

    Young Padawan

  • Members
  • Pip
  • 43 posts
  • Gender:Male
  • Location:belgium

Posted 29 June 2007 - 01:32 PM

hello,

Google is one of the big search sites in the world, people use it daily from 1-20 times... So if you want to have a populair site, its important to add yours to google. Now we all know that maybe if you wait some time your site gets listed in google on page 102...

I will teach you know step by step how to get your site on the number 1 spot. But before Icontinue, I have to note some stuff out. There are difrent ways to get your site on spot 1 but most important is traffic. Whitout it your page end really low. Also time is very important, dont think your site will end up n1 after 5 hours or something, more after a month or 2.

For making things clear im going to use a site as example called: http://www.examplesite.com.

So I hope you got ftp acces, little knowledge of html and some basic understanding of using your mouse and a gmail account, people that fail in this better stop reading :)


Step 1: Making a sitemap.xml
You can find alot of tools on the net that make a sitemap.xml for you. You can use them, or you can make it yourself (then you know your doing it right)

open notepath or any other application for text editing (Dreamwaver is your friend :)), and add this in your empty file:
<?xml version="1.0" encoding="UTF-8" ?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84 http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">

Now the first line tells us that we got a xml file. (im not going to explain how xml files work... drags me to far away from our goal) Second line tells us that the sitemap is ment for google. The <urlset> tags, says that where going to give some urls. Then you got some basic things and other crap we dont care about... Important is to have it there but dont mind it

Under that piece of code we add this:
<url>
<loc>http://www.examplesite.com/</loc>
<lastmod>2007-03-22</lastmod> 
<changefreq>daily</changefreq>
<priority>0.5</priority>
</url>
This is more important and ill explain every tag:
<url> Says that we are giving a url

<lastmod> Says when we last changed the page. Have to be in this format YYYY-MM-DD

<changefreq> Says how much we update our page, it can be always for a instant change on every reload, or also can be never when you never reload your page. You can use the following list to add between the <changefreq> tags:
  • always
  • hourly
  • daily
  • weekly
  • monthly
  • yearly
  • never
But really note this; it doesnt mean that google bot will always visit my page when i put in always. It doesnt mean that google will never view my page when i put in never. Its a guide but not a command!

<priority>Says how important your site is. Can be from 0.1-1.0. Also note that this doesnt mean when you put in 1 your site ends up higher. You can tell by saying, for example, index.html gets 1 and my other sites 0.7. That means that when people look for your sitename (examplesite.com), your index.html page will be first displayed and then other pages follow...

Oke we had that, now your have to type all your links you wanne send to google in that format. For every new link you add you add that code i explained earlyer. The order you put on your links doesnt matter but your first link has to be your site name, for me thats http://www.examplesite.com/. Note the / really important you add it.

After adding all your links you wanne add to google, you should have something like this (my site sucks i only got 2 links :))
<?xml version="1.0" encoding="UTF-8" ?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84 http://www.google.com/schemas/sitemap/0.84/sitemap.xsd"> 
<url> 
 <loc>http://www.examplesite.com/</loc> 
 <lastmod>2007-03-22</lastmod>
  <changefreq>daily</changefreq>
  <priority>0.5</priority>
 </url>
<url>
 <loc>http://www.examplesite.com/index.html</loc>
 <lastmod>2007-03-22</lastmod>
  <changefreq>daily</changefreq>
  <priority>1</priority>
</url>

Dont forget to close all your tags! So add to the end </urlset> Now save this file as sitemap.xml

Step 2: Making a robots.txt
A robots.txt file tells google bot witch pages he can index and witch he should leave alone. Its very important to limit some files, like images, admin sections, passwords,...etc.

The reason we dont allow google to index our images, is because people can then steal our bandwitch and copy them. If you got a site whit a nice self made template, then dont allow google to steal your images :)

Oke open notepath or any other text editor (not words *shoot person that try to use word*)
and past next lines in it:
User-agent: *
Disallow: /cgi-bin
Disallow: /scgi-bin
Disallow: /affiliaterevenue

User-agent: This says what crewler or bot has to follow the following lines of disallow or allow. I use a wildcard and now it says that every bot should follow it. You can add any spider you want. Following example will make it clear :)
User-agent: Google
Disallow: /img/
Disallow: /img

User-Agent: altavista
Disallow: /passwords
First we see 2 spiders, google cant view our img folder and altavasta cant view our passwords folder. When we say /img then any folder starting whit img will be disallowed/allowed. So for our example that means that /img, /img-1, /img-2 are disallowed. If we say /img/ then only the folder /img/ is disallowed.

robots.txt is really powerfull, think about it carefully. If you make one mistake your site can end on the bottom. For my site i just disallowed for all the spiders, images map, cgi-bin map and admin map.

When your done, save it as robots.txt

btw: you can also disallow robots/spiders whit meta tags, in step 3 we talk about those meta tags but I wont really tell about it.

Step 3: Meta tags
Meta tags are big, important and there are books of 100 pages about them... If you really want to learn much for it i suggest you use google and search for meta tags and read much! I'm going to cover over the basics and most important once (don't shoot me for not including all of them!)


So you got your html page, for example index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<p>Hello everyone</p>
</body>
</html>

Oke im not going to explain what this all does mean, you should know it :)
Good now between the <head> tags where going to add or <meta> tags. Like i said there are many meta tags but im going over the basic (you always have to fill in between the " " tags):

<META NAME="description" CONTENT=" ">This is for giving a discription about your site.

<META NAME="keywords" CONTENT=" "> Here i give keyword, keywords are the words related for your site. If i make a site about cookies i might add following keywords: Cookie, good cookies, choclat cookies. You seperated them whit a ,

<META NAME="robot" CONTENT="index,follow"> This tells the robot that they have to follow any link they will find. So a robot comes on your page then it will follow any link on that page. You can also use this to block a page so robots wont vist it.

<META NAME="refresh" CONTENT="60"> Here we automaticly refresh the page after 60 seconds.
<META NAME="copyright" CONTENT=" "> Your copyright comes here :)
<META NAME="author" CONTENT=" "> who made the page
<META NAME="language" CONTENT=" "> the language (also important voor google)
<META NAME="revisit-after" CONTENT="30 days"> This say when a robot has to revist the page every 30 days. (Remember our sitemap? you also can do it whit meta tags ) But because people spammed this most robots ignore it. But it doesnt hurt to include it :)

Oke now here is my index.html page of my cookie site :)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META NAME="description" CONTENT="The site for the best home made cookies">
<META NAME="keywords" CONTENT="Cookies, home made, cookie">
<META NAME="robot" CONTENT="index,follow">
<META NAME="refresh" CONTENT="60">
<META NAME="copyright" CONTENT="Copyright  2007 cookies">
<META NAME="author" CONTENT="Shub">
<META NAME="language" CONTENT="English">
<META NAME="revisit-after" CONTENT="2 months">
<title>Untitled Document</title>
</head>
<body>
<p>Hello everyone</p>
</body>
</html>

Do this for every page you got, but remember to add good keywords and description. There are also some online tools that prove to be the best meta generator, you can use them but a machine never can beat a human :)

If your ready go to the next step, you should have by now, a sitemap.xml, robots.txt and your site.

Step 4: Uploading & registering your page
Oke now you can upload everything to your site. You should put everything in the public_html file or in the www. (the main dir of your site)

When your done that go to this link: http://www.google.com/addurl
Fill in your site and a little description. Now comes a important step, add the WWW tags! If you forget them you can start over (start from step4) unless you change all the url's in the sitemap.xml and remove the www tags.

Then you get a thank you screen saying your urls is added (Not really true but that doesnt matter)

Step 5: Controling your site
Now you can wait and hope for google to index your site good and wish that everything is oke, or you can controle it yourself by signing up in the webmasters part of google. You need a gmail account for this.

Go to this link: Click me!!!
sign in whit your gmail account info and then you can add your site. Also note to add your site whit the www tags. After you done that you can send your sitemap.xml to google (thats intresting) This will save alot of time, you now tell google to add sites to there index instead of waiting for them to get your links...

But before you can check out the cool stuff google has to offer, you need to add another meta tag (hell yeah) You add this on on your index.html file. For example this one:
<meta name="verify-v1" content="APQHRWkYjlXu3qz8s3lw2Uyu5qv+mlHTodEOcjAleE=" >
note: its fake :P
Oke this is for google only, you wont gain anything for it. It tells google that you are the webmaster and that you now can view important things of your site.

Oke there are some important things you can do like sitemap.xml. Right let us start whit the sitemap, just upload it to google and wait, till then you have to wait and wait and wait. It will take some time.

There are also some other cool things like page ranks and other stuff, check it your yourself and have patients :). Its wel enough explained on google site itself so im not planningt to add everything in this tut.

Now your done :) your site is on google index. Just wait a month and check the first days the webmaster tool of google.

Thnx for reading, this is my first tut so dont blame me for being a noob, i know my spelling sucks but ho well, life sucks :P

~Shub




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users