Showing posts with label SEO. Show all posts
Showing posts with label SEO. Show all posts

Wednesday, 2 August 2017

How to Remove Date Number (Year & Month Figure) From Blogger Post URL

A large portion of the bloggers couldn't care less the date data on the blogspot post URL since they regard blog as a web journal. They expound on things or actualities which are substantial just at the season of composing. For instance political online journals, news sites and so on are legitimate just at a particular purpose of time and the time figure on the distributed URL bodes well. In any case, on the off chance that you are an expert blogger who composes certainties or instructional exercises which are legitimate for constantly, date figures on the post joins have neither rhyme nor reason. In the event that you are utilizing WordPress, you can pick the custom URL structure to maintain a strategic distance from Year/Month from connect yet in Blogspot you don't have such opportunity. Despite the fact that blogger does not give an approach to expel the date from the blog entry URL, you can pick a roundabout technique to stay away from them from your prevalent articles without influencing the present movement and backlink esteem. In this technique you should to make another page (not post) where there is no digit on the URL and glue the substance of your old mainstream post. At that point utilizing custom divert highlight of blogspot, you can divert the old post URL to the new URL which does not have date figure. In the event that you are searching for a straight strategy to dispose of digits from blogger distributed connections, as of now it doesn't have such a component.

The most effective method to Get Rid of Date from Blogspost Post Links 


To dispose of date figure from Old Popular blogger post URL, take after the means beneath.

  • Login to Blogger Account.
  • Click Dashboard 
  • Tap on Pages and make another page by Selecting clear page
How to Remove Date Number (Year & Month Figure) From Blogger Post URL


  • Duplicate the whole substance on the old prominent page (post which you would prefer not to demonstrate the information figure on URL) including all the meta labels and glue them on the recently made blogger page and distribute it. You should ensure the whole post content including labels (title, meta labels and so on) are replicated to the new page. 
  • Play out a custom divert from the old article URL to the recently made page. To do this take after the directions gave in the connection beneath. 



By following the means portrayed above we can effectively conceal the date figure(The Year and Month ) from the blogspot post joins. Similarly on the off chance that you need to show blogger posts backward request take after the means said in the connection underneath. 

Presently you can expel the date data from your mainstream blog entries. To make your blog more one of a kind you should include a redid Favicon for your blog. To do this tap on the connection underneath.

Monday, 6 March 2017

How to create dynamic XML sitemap and submit to google web master for indexing


In this tutorial I’ll tell you very important method to generate dynamic xml sitemap for your website and how can we indexed all our dynamic url in google search.

Every body wants to create website now days and generate some traffic fast. So this is the trick for smart geeks, The below script is tested by me and worked great for me.

Let me tell you my experience, I had aprox 2 lakh dynamic urls which i created from my database rocords and i want to index all urls in google search, So i have created a php script which pull records from database and create a dynamic url for each records.

Suppose we have a books table with their name and auther.

ID NAME                 AUTHOR
1 Book Name-1 Book Author-1
2 Book Name-2 Book Author-2
3 Book Name-3 Book Author-3

My task is to index all my books url with their author name in google search, so that if anybody is looking for same books then he can find me in google search. Google automatically crawl urls but if you want fast result then give it try.

Create file sitemap.php and paste below script after that upload your sitemap.php file in your project root directory, Your sitemap url will be http://www.example.com/sitemap.php

You can make changes in below script according to your need this is just for demonstration purpose.

sitemap.php

<?php
  header('Content-type: application/xml');
  $baseurl = "http://example.com/books/";
  $hostname = "localhost";
$username = "username";
$password = "password";
$dbname = "booksdb";
$con = mysqli_connect($hostname, $username, $password, $dbname);

 function clean($string) {
   $string = str_replace(' ', '-', $string); // Replaces all spaces with hyphens.

   return preg_replace('/[^A-Za-z0-9\-]/', '', $string); // Removes special chars.
}

  $output = '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
  $output .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' . "\n";
  echo $output;
?>
  <?php $query = "SELECT name, author, id FROM books WHERE  status=1 LIMIT 0, 50000";
    $result = mysqli_query($con, $query);
    $res = array();

    while($resultSet = mysqli_fetch_assoc($result)) { 

 if(!empty($resultSet['name'])) { ?>

<url>
  <loc><?php echo $baseurl.clean(trim($resultSet['name'])).'/'. clean(trim($resultSet['author'])).'/'.$resultSet['id']; ?></loc>
</url>
<?php }  } ?>
</urlset>

Now time to submit your xml sitemap to google web master.

Login into your google web master account and submit your site map.


How to create dynamic XML sitemap and submit to google web master for indexing


If you don’t know how to submit sitemap in google web master please follow this tutorial.




Sunday, 5 March 2017

How to make visible newly hosted websites in google search

How to make visible newly hosted websites in google search

Today we are going to discuss about a very important issue we face while we purchase and host our newly website and facing the issue with google search that why my website is not showing in google search.

SO here i am going to discuss about my experience what i do with my website to index in google search and got visibility in next 24-48 hours.


My steps to index my wordpress blog in google search super fast.

Note: Before doing below steps your website should be live.

Step-1: Create google webmaster account.

https://www.google.co.in/webmasters/

Steps-2: Create XML sitemap for your website and if you have normal html website there is lot’s of online XML sitemap generater tools are available on web like https://www.xml-sitemaps.com/

If your website in wordpress you can install some available plugins for generating XML sitemap for your website.

I used “Yoast” one of the best plugin for doing SEO of wordpress website. And generate XML Sitemap.

Step-3: Place your website XML sitemap on your web root directory using ftp if you used online XML sitemap generater tools.

Your sitemap map url look like www.yourWebsiteName.com/sitemap.xml
In case of wordpress YOAST it does this task automatically.

Step-4: Login into your google web master account and add your website by click on “ADD A PROPERTY” button and popup will open here add your website link and click on continue button.

Step-5: Now click on your added website you can add multiple website here. you’ll see the dashboard. Now click on crawl-> sitemaps in left panel and here you’ll see ADD/TEST SITEMAP button on top right corner.

Step-6: create robots.txt file and place this file in your website root directory via ftp.

What is robots.txt

robots.txt tells search engines which pages have to index and which are not.
You can read more about robots.txt from here http://www.robotstxt.org/

My robots.txt is

User-agent: *
Disallow: /wp-admin/

Where Disallow means i don’t want to crawl my admin panel in google search.

After creating robots.txt file place this file in your website root directory and check it
www.yourWebsiteName.com/robots.txt
Or use google web master robots.txt tester tool.

Now wait at least 24-48 hours your website will become start indexing in google search, You can check by this syntax in google search box

site:yourWebsiteName.com


Hope this tutorial will help you to index your website fast in google search.


Friday, 17 February 2017

How to Set Up a robots.txt to Control Search Engine Spiders

How to Set Up a robots.txt to Control Search Engine Spiders

When I first started writing my first website, I did not really think that I would ever have any reason why I would want to create a robots.txt file. After all, did I not want search engine robots to spider and thus index every document in my site? Yet today, all my sites, including thesitewizard.com, have a robots.txt file in their root directory. This article explains why you might also want to include a robots.txt file on your sites, how you can do so, and notes some common mistakes made by new webmasters with regards the robots.txt file.

For those new to the robots.txt file, it is merely a text file implementing what is known as the Standard for Robot Exclusion. The file is placed in the main directory of a website and advises spiders and other robots which directories or files they should not access. The file is purely advisory — not all spiders bother to read it let alone heed it. However, most, if not all, the spiders sent by the major search engines to index your site will read it and obey the rules contained within the file (provided those rules make sense).

Why is a Robots.txt File Important?


What is the purpose of a robots.txt file?

1. It Can Avoid Wastage of Server Resources

    Many, if not most websites, have some sort of scripts (computer programs) that run on their website. For example, many websites have some sort of contact form, such as that created using the Free Feedback Form Script Wizard. Some also have a search engine on their site, such as that which you see in the left column of every page on thesitewizard.com.

    When search engine robots or spiders index your site, they actually call your scripts just as a browser would. If your site is like mine, where the scripts are solely meant for the use of humans and serve no practical use for a search engine (why should a search engine need to invoke my feedback form or use my site search engine?) you may want to block spiders from the directories that contain your scripts. For example, I block spiders from my feedback form, search engine and CGI-BIN directory. Hopefully, this will reduce the load on the web server that occurs when scripts are executed by removing unnecessary executions.

    Of course there are the occasional ill-behaved robots that hit your server at high speed. Such spiders can actually bring down your server or at the very least slow it down for the real users who are trying to access it. If you know of any such spiders, you might want to exclude them too. You can do this with a robots.txt file. Unfortunately though, ill-behaved spiders often ignore robots.txt files as well.
 
 
2.  It Can Save Your Bandwidth

    If you look at your website's web statistics, you will undoubtedly find many requests for the robots.txt file by various search engine spiders. The search engines try to retrieve the robots.txt file before indexing your website, to see if you have any special instructions for them.

    If you don't have a robots.txt file, your web server will return a 404 error page to the engine instead. For those who have customized their 404 error document, that customised 404 page will end up being sent to the spider repeatedly throughout the day. Now, if you have customized your 404 page, chances are that it's bigger than the standard server error message "404 File Not Found" (since you will want your error page to say more than the default error message). In other words, failing to create a robots.txt will cause the search engine spider to use up more of your bandwidth as a result of its repeated retrieval of your large 404 error file. (How much more depends, of course, on the size of your 404 error page.)

    Some spiders may also request for files which you feel they should not. For example, some search engines also index graphic files (like ".gif", ".jpg" and ".png" files"). If you don't want them to do so, you can ban it from your graphic files directory using your robots.txt file.

  
3. It Removes Clutter from your Web Statistics

    I don't know about you, but one of the things I check from my web statistics is the list of URLs that visitors tried to access, but met with a 404 File Not Found Error. Often this tells me if I made a spelling error in one of the internal links on one of my sites (yes, I know — I should have checked all links in the first place, but mistakes do happen).

    If you don't have a robots.txt file, you can be sure that /robots.txt is going to feature in your web statistics 404 report, adding clutter and perhaps unnecessarily distracting your attention from the real bad URLs that need your attention.

   
4. Refusing a Robot

    Sometimes you don't want a particular spider to index your site for some reason or other. Perhaps the robot is ill-behaved and spiders your site at such a high speed that it takes down your entire server. Or perhaps you prefer that you don't want the images on your site indexed in an image search engine. With a robots.txt file, you can exclude certain spiders from indexing your site with a robots.txt directive, provided the spider obeys the rules in that file.

How to Set Up a Robots.txt File

Writing a robots.txt file is extremely easy. It's just an ASCII text file that you place at the root of your domain. For example, if your domain is www.example.com, place the file at www.example.com/robots.txt. For those who don't know what an ASCII text file is, it's just a plain text file that you create with a type of program called an ASCII text editor. If you use Windows, you already have an ASCII text editor on your system, called Notepad. (Note: only Notepad on the default Windows system is an ASCII text editor; do not use WordPad, Write, or Word.)

The file basically lists the names of spiders on one line, followed by the list of directories or files it is not allowed to access on subsequent lines, with each directory or file on a separate line. It is possible to use the wildcard character "*" (just the asterisk, without the quotes) instead of naming specific spiders. When you do so, all spiders are assumed to be named. Note that the robots.txt file is a robots exclusion file (with emphasis on the "exclusion") — there is no universal way to tell spiders to include any file or directory.

Take the following robots.txt file for example:

User-agent: *
Disallow: /cgi-bin/

The above two lines, when inserted into a robots.txt file, inform all robots (since the wildcard asterisk "*" character was used) that they are not allowed to access anything in the cgi-bin directory and its descendents. That is, they are not allowed to access cgi-bin/whatever.cgi or even a file or script in a subdirectory of cgi-bin, such as /cgi-bin/anything/whichever.cgi.

If you have a particular robot in mind, such as the Google image search robot, which collects images on your site for the Google Image search engine, you may include lines like the following:

User-agent: Googlebot-Image

Disallow: /

This means that the Google image search robot, "Googlebot-Image", should not try to access any file in the root directory "/" and all its subdirectories. This effectively means that it is banned from getting any file from your entire website.

You can have multiple Disallow lines for each user agent (ie, for each spider). Here is an example of a longer robots.txt file:

User-agent: *
Disallow: /images/
Disallow: /cgi-bin/

User-agent: Googlebot-Image
Disallow: /

The first block of text disallows all spiders from the images directory and the cgi-bin directory. The second block of code disallows the Googlebot-Image spider from every directory.

It is possible to exclude a spider from indexing a particular file. For example, if you don't want Google's image search robot to index a particular picture, say, mymugshot.jpg, you can add the following:

User-agent: Googlebot-Image
Disallow: /images/mymugshot.jpg

Remember to add the trailing slash ("/") if you are indicating a directory. If you simply add

User-agent: *
Disallow: /privatedata

the robots will be disallowed from accessing privatedata.html as well as privatedataandstuff.html as well as the directory tree beginning from /privatedata/ (and so on). In other words, there is an implied wildcard character following whatever you list in the Disallow line.

Where Do You Get the Name of the Robots?


If you have a particular spider in mind which you want to block, you have to find out its name. To do this, the best way is to check out the website of the search engine. Respectable engines will usually have a page somewhere that gives you details on how you can prevent their spiders from accessing certain files or directories.

Common Mistakes in Robots.txt

Here are some mistakes commonly made by those new to writing robots.txt rules.

 
1. It's Not Guaranteed to Work

    As mentioned earlier, although the robots.txt format is listed in a document called "A Standard for Robots Exclusion", not all spiders and robots actually bother to heed it. Listing something in your robots.txt is no guarantee that it will be excluded. If you really need to block a particular spider ("bot"), you should use a .htaccess file to block that bot. Alternatively, you can also password-protect the directory (also with a .htaccess file).
   
2. Don't List Your Secret Directories

    Anyone can access your robots file, not just robots. For example, typing http://www.google.com/robots.txt will get you Google's own robots.txt file. I notice that some new webmasters seem to think that they can list their secret directories in their robots.txt file to prevent that directory from being accessed. Far from it. Listing a directory in a robots.txt file often attracts attention to the directory. In fact, some spiders (like certain spammers' email harvesting robots) make it a point to check the robots.txt for excluded directories to spider.
   
3. Only One Directory/File per Disallow line

    Don't try to be smart and put multiple directories on your Disallow line. This will probably not work the way you think, since the Robots Exclusion Standard only provides for one directory per Disallow statement.

How to Specify All the Files on Your Website

A recent update to the robots.txt format now allows you to link to something known as a sitemaps protocol file that gives search engines a list of all the pages on your website. Please read the article How to Get Search Engines to Discover (Index) All the Web Pages on Your Site for more information about this extension.

It's Worth It

Even if you want all your directories to be accessed by spiders, a simple robots file with the following may be useful:

User-agent: *
Disallow:

With no file or directory listed in the Disallow line, you're implying that every directory on your site may be accessed. At the very least, this file will save you a few bytes of bandwidth each time a spider visits your site (or more if your 404 file is large); and it will also remove Robots.txt from your web statistics bad referral links report.

Source: 

HTML APIs: What They Are And How To Design A Good One

As JavaScript developers, we regularly forget that not everybody has a similar data as USA. It’s referred to as the curse of knowledge:...