Wednesday, December 7, 2011

How to Solve Canonical Issues by Creating .htaccess File

Canonical issue is the most common problem websites are facing. Due to the canonical issue many informative sites are not performing well in search engine results page. Ranking top in search engine always depends on the quality of information a website is providing, how the site is optimized & the backlinks. Still any site is not performing well in search engine then there must be some issues like canonical, blacklisted IP etc.

What is canonical issue?? Suppose you have a site as "http://www.yoursite.com/"
But your site is also opening in browser like "http://yoursite.com/" or "http://www.yoursite.com/index.html" or "http://www.yoursite.com/index.php" or "http://www.yoursite.com/home.php" etc.

In these cases all the pages are same at user end, means the user will see the same page and same information at every URL. But search engine crawler treats these pages as different pages. So the crawler will treat it like different pages of a single site are showing the same information in different pages. Everything the title, meta tags, content etc is same on these pages. So the search engines will consider it as a case of content duplicacy and the search engine will consider your site as spam.

How to solve canonical issues: We can solve this issue by redirecting all these URLs to a single URL permanently. By uploading a .htaccess file we can easily redirect all the URLs.

1: Following is the code to redirect non www domain (http://yoursite.com/) to www domain (http://www.yoursite.com/) permanently (301):

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^yoursite\.com
RewriteRule ^(.*)$ http://www.yoursite.com/$1 [R=permanent,L]

2: Following code is to redirect index.html to http://www.yoursite.com/

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.html\ HTTP/
RewriteRule ^(.*)index\.html$ /$1 [R=301,L]

3: Following code is to redirect index.php to http://www.yoursite.com/

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*folder/index\.php\ HTTP/
RewriteRule ^(.*)folder/index\.php$ /folder/$1 [R=301,L]

After creating the .htaccess file we just need to upload it to the root folder of the website.

There is also a good tool to create .htaccess file. http://www.htaccesseditor.com/en.shtml

Friday, December 2, 2011

How to Create an RSS Feed With Notepad, a Web Server, and a Beer

An RSS (Rich Site Summary) feed is an XML file used to describe the contents of your website। As your website content changes, your RSS feed changes. Other computer systems, known as 'aggregators' or 'harvesters', read your RSS feed everyt once in a while. If you have provided new information, the aggregator takes that information and sends it to readers around the world. Thus information about your site's contents is 'syndicated', that is, rebroadcast to a much larger audience.


Step One: Getting Ready

Notepad: an RSS file is a plain text file. This means it can be created with any ordinary text editor. Windows Notepad will do the job. You can also use Wordpad or even MS-Word. But you will have to be sure to save your file as plain text. Any formatting breaks the RSS file. Save in plain text only. I prefer to use a text editor called NoteTab. It is a plain text editor and never surprises me with unexpected formatting. http://www.notetab.com In Linux I use Bluefish. http://bluefish.openoffice.nl/

The server: if you have a website, you have a server. The server is where your website is located. You need to be able to load files to your server. If you can put your home page on your server, you will use exactly the same process for your RSS file.

The beer: get a beer from your fridge or buy one from your local store. Open the beer.

Step Two: Find a Template

The easiest way to create an RSS file is to copy someone else's. You don't need to worry about this; you will be replacing all of their content, and the format of the file is freely licensed for use by anyone. Here is a short, simple template file you can use:

(Copy everything below this line, but not including this line)
         http://www.downes.ca/news/OLDaily.htm  OLDaily - By Stephen Downes   en-us       http://www.downes.ca/images/rss.gif  http://www.downes.ca  90  36        http://www.downes.ca    OK, here's where we stand. I have no email into or out of downes.ca - this means that if you are sending me email to stephen@downes.ca it will fail. It also means that newsletter mailouts are failing (at least, I think they're failing...). Additionally, all scheduled processes have terminated, which means that Edu_RSS will be updated manually. I have no tech support until at least tomorrow, so it looks like we'll be limping along like this for a bit. Again, please note, email sent to me at downes.ca is not reaching me. By Stephen Downes, Stephen's Web, July 22, 2003          http://www.downes.ca    Downes.ca was off the air for a few days following a denial of service attack. We are back for now but things are still touch and go. I'll keep you posted.  By Stephen Downes, July 21, 2003         

(Stop copying at this line. Do not copy this line.)

Take the text you have just copied and paste it into your text editor. Save this as a new file called (say) mysite.rss - you can call your saved file anything you want, but it is a lot easier if you indicate the name of your site and use .rss as an extension, just so people can tell by looking at the title what your file does. Remember to save the file in plain text format. Take a sip of the beer. You've earned it.

Step Three: Defining Your Channel

Now look at the file you have just copied into your text editor. Near the top, notice that there is a line that says . The information following this tag, and above the tag that says , will be where you describe your website as a whole.

You need to enter four pieces of information. The information goes between the tags, where information about my site is currently located. Delete the information about my site and type in the information about your site. Specifically:

    title: this is the title of your site
    link: this is the URL to the home page of your site
    description: this is a short description of your site
    language: this is the language your site is written in (you need to use the official format for this, so if your site in English, just leave this line the way it is)

You only need to create this part once. You can change it any time you want, but you do not have to. Once this part is done, therefore, it is done forever. Take a sip of your beer. You've earned it.

Step Four: Your Image

This part of your RSS file is optional; you don't have to add an image if you don't want to. Your image will be used by some aggregators to provide some visual identity to your RSS feed.

You will need to create an image first. Use any image editor (I use PaintShop Pro - http://www.paintshoppro.com/ ). Your image should be very small: my image is 90 pixels wide by 36 inches deep. You can either create a new image for your site image or do as I did: use PaintShop Pro to capture a bit of the site that looks nice, then reduce it in size.

You can put your image anywhere you want, but I recommend uploading it to the same directory as your RSS file.

Then describe your image in just the same way you described your channel: by replacing my text and using your own.

    title: the title of your image, usually the title of your website. This is often used as an image 'alt' tag.
    url: the location of your image on the web. Use the FULL url, including the http
    link: the URL people are sent to if they click on your image. This is usually the same URL as your channel link URL
    width: the width of your image, in pixels
    height: the height of your image, in pixels

As with the channel tag, once you've done this step once, you never have to do it again. This was a long step, so take a couple of sips of beer.

Step Five: Defining Your Links

Your site may contain one or more articles you want readers to read. This is the part that changes from time to time. For example, Technology Source publishes a set of eight or so articles every two months. So every two months, you need to change this list, to reflect the current contents of Technology Source.

Each article is described by an tag. In the example above, I have included two items. You can see that the description for each starts at the tag and ends with the tag.

In between the item tags are some tags containing information about the article. To create information about an article, remove the information about my articles, and replace it with your own. If you have more than two articles, copy an article tag (everything between and , including these tags) and paste it below the second item, and above the tag. Then enter your content:


    title: this is the title of the article
    link: this is the URL of the article itself
    description: this is a short summary of the article. Note that I use description to include information about the author and the date.

Create an item for each article. Then save your file and have a sip of your beer.

Step Six: Escape Characters

Now we come to the trickiest part of creating an RSS file.

An RSS file is an XML file. Some characters are illegal in XML. So you have to 'escape' them, that is, insert a text string in their place. Here is the list I use (not all of these are strictly required, but using this full list ensures maximum safety).

    & - replace all instances of '&' with the following: &
    - Don't forget the URL! Many URLs have ampersands in them.
    - If a link element is http://www.mysite.com/index.cgi?n=4&p=5 then you must change it to http://www.mysite.com/index.cgi?n=4&p=5
    " - change every full quote to "
    - For example: He shouted, "Fire!" becomes, He shouted, "Fire!"


    ' - change every apostraphe to '
    - For example: It's his bike. becomes It's his bike.

    > - change every 'greater than' character to > - but DO NOT change them in the tags.
    - For example, am > three feet tall becomes I am > three feet tall

    < - change every 'less than' character tag to < - but DO NOT change them in the tags
    - For example: "I have < five dollars becomes I had < five dollars

    Step Seven: Uploading Your File

    Upload your file to your web server. It is best to put it in the same directory as your home page, though you could place it anywhere you want.

    You now have a working RSS feed. Congratulations. Have another sip of beer.

    Step Eight: Validating Your RSS File

    Strictly speaking, this step is optional, but it is strongly recommended since it's easy to make a mistake on step six.

    To validate your RSS file, go to an RSS validator on the Web and enter the full URL of your RSS file into the form. Click the button. If there are any errors, the validator will tell you about them. Otherwise, it will validate your file.

    Here are some validators:

      http://aggregator.userland.com/validator
      http://feeds.archive.org/Fvalidator/

      If your feed is valid, have a sip of your beer. Otherwise, correct the error and try again.

      Step Nine: Advertising Your Feed

      You need to tell people that your feed exists. They are not (necessarily) going to find it through Google. There are two major ways to do this.

      First, add an XML button to your home page. An XML button is a little organge image that links to your RSS file. You've probably seen them on other web pages. Get a copy of the image (one is located at http://www.downes.ca/images/xml.gif ) and upload it to your website.Then place the image, with a link, on your home page. For example, place the following code on your home page:

      <=img src="xml.gif" width=36 height=14 alt="RSS feed for this site" border=0>

      Second, you can submit your site's RSS feed URL to various aggregators. This will tell them to start checking your RSS feed for updates. Here are some aggregators:

        Daypop: http://www.daypop.com/info/submit.htm
        Syndic8: http://www.syndic8.com/suggest.php?Mode=data
        Edu_RSS: http://www.downes.ca/cgi-bin/xml/feeds.cgi

      Finish your beer. You're done. Don't forget to recycle the bottle.

      Note: these are instructions for creating a basic RSS feed. The RSS standard can be extended in a variety of ways. But this is a good starting point: your feed will be fully functional, and most important, it will work. Get to know and love your feed. After a time, you may want to look at the world of RSS 1.0 and RSS 2.0 and the various ways to add more information. When you add functionality, you will use the same process: find a template, apply the rules, and validate. But give it time. Be comfortable, then move on.

Friday, September 2, 2011

How To Reduce Bounce Rate of Your Website

Some tips of reducing bounce rate:

1. Good Web Layout And Design : You should be careful when choosing between magazine and normal layout theme. Many recommended Thesis theme for better bounce rate. The look of your site’s design can force your visitors to stay.

2. Relevant Content : If your blog is about Animals, then publish articles related to Animals category alone. Don’t write about Fruits and Vegetables. Because visitors will expect more from Animals category. Each page of your blog should be on-topic.

3. Clear and Proper Navigation : Let the users know where they are. Every blog should have breadcrumb. If not download it right now. Have a proper archives section. Place the navigation menu near the top of the page. Use simple and clear words for navigation options. Don’t use too many links there. Maximum of 7 links recommended.

4. Good and Original Content : Always publish original content. Never publish duplicate content which will affect your blog in several ways. Your blog’s content should be worth reading.

5. Avoid Distractions : Avoid pop-ups, external toolbars and anything similar to that which causes distractions to the visitors. You can also avoid using Text In Link ads. Trust me, it decreases page views.

6. Improve loading speed : Don’t make your visitors to wait. Your blog’s page views will automatically increase if the pages load faster and quicker. You can check the tips to improve and increase your blog’s loading speed.

7. Add Relevant Images : Make sure you add relevant and related images to the articles. Provide good resolution and quality images. I made a list of websites providing copyright and royalty free images, you can try that.

8. Avoid External Links : External links on your blog’s main page can make the bounce rate very high. So you can avoid external links on the first page that visitors see when they land on your site. Try to reduce the number of outgoing links.

9. Comparing : Compare the page which gets lower bounce rate with the page that gets higher. Ask your friends and other fellow bloggers the difference between them. This one helps a lot.

10. Analyze Bounce Rate : I recommend Google Analytics for analyzing your site’s bounce rate. Check your site’s bounce rate regularly and see if there is any change. Study the reports. See which page gets the lowest bounce rate and highest bounce rate. You can also check your site’s bounce rate through Alexa. Though, I don’t recommend it much.

11. Ample Content : Try to have minimum 300-400 words of content on your site’s pages. Try to provide sufficient content to your site visitors. Let it be in the form of images, text or videos.

12. Targeted Keywords : Your Keywords should be specifically targeted for the content on your site. Bounce rates are also influenced by wrongly optimized keywords. Consider a post title like this, “Top 15 Twitter Tools for Twitter Freaks“. And you optimize this post title with wrong keywords like “Twitter Hacks” or “Twitter’s New Service”. This makes the users annoy and they won’t visit that page/site later.

13. Minimize Pages : Try to minimize the number of pages you have on your website/blog. Keep it simple and clear, so that your visitors will not get confused.

14. Optimize With Keywords : Always use the keywords within your articles. For example, I have a post titled “7 Basic Tips For Improving Your Blog’s Alexa Rank“, and then I will use the keywords like “Improve Alexa Rank”, “Alexa Rank Tips” and so on. This will indeed increase the value of the keywords on the search engines.

15. Good and Effective Headlines : Each page’s title should match the content within that page. Don’t try to use misleading page titles. You can refer Google’s “Five Tips for Writing Effective Web Headlines“.

16. Offer subscriptions : You can offer RSS feeds and E-mail newsletters by which readers can easily subscribe and get daily updates. This will help in enhancing your site’s bounce rate because those readers will come back to read more.

17. Good Quality Links :Try to acquire as many good links as possible that points to your blog or blog’s page. Those links should have correct anchor text. You can hook other webmasters to link to your pages by placing genuine content in your pages. Avoid link exchange since there is a possibility of losing PageRank on both sides.

18. Remove Autoplay Videos : This is my opinion. I’ll close the site immediately if it starts singing. Remove the video altogether, or at least have it paused.

19. Popular Posts : You can use Popular Posts plugin and list the top and popular articles in your site’s sidebar.

20. Related Posts : There are many ways to show related posts on your blog. My favorite is Yet Another Related Posts Plugin (YARPP). You can try that. Showing related posts with images/thumbnails also works.

21. Internal Linking : By internal linking your readers can know about other content of your site without having to search for it. Interlink only if it is related to the article and you can also do this to your old articles. Try to link between your old articles as reference.

22. Place Search Box : You can provide your visitors with the option to search on your blog at the top. If they cannot find anything interesting on the landing page, they can use search option to navigate into the site.

23. Page SEO : Provide proper URL, title and keyword optimization. For WordPress users, I recommend All In One SEO plugin.

24. Interactive Articles : Ask questions to your readers and visitors. Your article should be in a reader friendly manner.

25. Free Downloads : You can easily attract visitors if you provide free downloads like free themes, free wallpapers and so on. You can make them click on that link easily.

26. Use Post Excerpts : If your article is too long you can use post excerpts. If there is too much content on the main page visitors will get tired by scrolling and they’ll decide to leave.

27. Eliminate Bad Traffic : If you’re getting/buying traffic from other sites and it is not profitable to you, then you need to eliminate all those sources. Check which PPC keywords are bouncing and shut those keywords.

28. Upper Left to Lower Right : Keep the upper left of your site pretty, pretty nice and attractive. Because visitors will first see that only and that decides whether they need to stay or not.

29. Optimize 404 Pages : Many blogs have ugly 404 error page. That makes the bounce rate to bounce more. Your visitors will leave your site and look elsewhere for the information they were looking for. So optimize the error page. Provide some solutions and suggestions there. You can check HB‘s 404 Error page.

30. Optimize The Sidebar : Remove all those useless and time consuming widgets from your site’s sidebar and try to include widgets such as “Popular Posts” and “Recent Articles”. You can also use “tag cloud” in the sidebar.

31. Smooth Navigation: Smooth and simple navigation is necessary to enhance the user experience. Linking one web page to another helps in reducing the bounce rate of the website to a very far extent. The intention is to help the users extract the required information with an ease.

32. Do not add unwanted elements : Suppose your website contains relevant information, appropriate images and essential call to action tools and suddenly a pop up ad appears, your ardent efforts to enhance your users’ experience may get hampered in a very short instant and thus distract the users’ attention from your website.This results in high bounce rate. Hence, it is advisable to exclude such elements.

33. Eye catchy taglines : Taglines/ headlines are the first elements that the users come across while reading a web page, an article etc. A headline is essentially the gist of what follows and should propel the readers to read further.On another note, key word rich headlines help in improving the search engine ranking of that page. If your headline is able to catch the eye of the readers, it automatically lowers the bounce rate of a website.

34. Website compatible with different browsers : Browser compatibility is one of the most important factors in reducing the bounce rate of a website. For example: – a website that is compatible to work on Mozilla Firefox may not work very well with Internet Explorer which may increase the chances of losing out some genuine leads. Therefore, make sure that your website is compatible with every web browser.

35. Encourage the users to take an action :Users participation is an essential factor to establish a strong brand identity, to improve your sales, to keep the users abreast of the latest in your company or industry, to uphold the interests of the users etc. This can be achieved with the aid of video clips, audio clips, live chat, discussions, answering questions, leave a comment section etc. All these activities helps in reducing bounce rate the bounce rate of a website.

36. Use re-directions where necessary : Page re-directions should be used in times of extreme need. Avoid re-directions as far as possible to make the website light.

37. Don’t overload with images : Do not overcrowd your website with unrelated images as it makes the website heavy and thus have a negative effect on the bounce rate of a website.


Image Optimization

Few Points On Image Optimization:

1. Proper name of the image folder. not img_4 like this. If it is computer page then use computer image name of the folder.
2. Proper alt text creation.
3. Proper page optimization by giving labels of the image.
4. Create image with .gpef or jpg file name with 256 colors.
5. Image Sitemap.

With image search, just as with web search, Google's goal is to provide the best and most relevant search results to our users. Following Google's Webmaster Guidelines and best practices for publishing images can increase the likelihood that your images will be returned in those search results. In addition, you can also use Google's image extensions for Sitemaps to give Google additional information about the images on your site's URLs. Doing this can help Google discover images we might not otherwise find (such as images that are reached via JavaScript forms), and also enables you to identify the most important images on a page. For example, if your site uses templates, every page might feature a boilerplate image. By not listing this image in your Sitemap, you're telling Google that it's less important than the images you have included. However, Google doesn't guarantee that we'll index all of your images or use all of the information in your Sitemap.

To give Google information about images on your site, you'll need to add image-specific tags to a Sitemap. (You can also update an existing Sitemap.) You can create your Sitemap manually, or use one of a number of available third-party tools that can help you generate Sitemaps. You can use a separate Sitemap to list images, or you can add image information to an existing Sitemap. Use whichever method works for you.

For each URL you list in your Sitemap, add additional information about important images on that page. The following example shows a Sitemap entry for the URL http://example.com/sample.html, which contains two images. (You can list up to 1,000 images for each page.)

        http://example.com/sample.html          http://example.com/image.jpg              http://example.com/photo.jpg         

Image tag definitions

Tag Required Description
Yes Encloses all information about a single image. Each URL ( tag) can include up to 1,000 tags.
Yes The URL of the image.

In some cases, the image URL may not be on the same domain as your main site. This is fine, as long as both domains are verified in Webmaster Tools. If, for example, you use a content delivery network (CDN) to host your images, make sure that the hosting site is verified in Webmaster Tools OR that you submit your Sitemap using robots.txt. In addition, make sure that your robots.txt file doesn’t disallow the crawling of any content you want indexed.

Optional The caption of the image.
Optional The geographic location of the image. For example, Limerick, Ireland.
Optional The title of the image.
Optional A URL to the license of the image.

After you’ve submitted your Sitemap, it’s best to wait up to 5 days to make sure there’s been enough time to index it. Troubleshooting Sitemaps.

Note: Submitting image information in a Sitemap doesn’t add your images to the Google Image Labeler. Google uses an algorithm to pick these images, and images can’t be added manually.


Difference between Robots.txt file, robots meta tags and rel="nofollow"

Robots.txt

You can control how search spiders and robots index your site (or parts of it) by using an ASCII-encoded text (not HTML) file called robots.txt (case sensitive) in the root directory of your Web server.

This plain text file can define some simple guidelines for robots to use. For example, if you ask all robots (identified by a wildcard character of *) to not index your site at all (everything from the root of your server: /), your text file would look like this:

User-agent: * Disallow: /

If you wanted all robots to index everything, you might try this:

User-agent: * Allow: /

You could single out a single robot and ask it to do something link this:

User-agent: Googlebot Disallow: /admin/

You can have several different rules for different robots. Again, not all robots will follow your requests.

Meta Tags

Those webmasters who have been using a robots meta tag know that if you tell a compliant (considerate?) spider or robot to ‘nofollow’ it means they should not follow any links that you have on your page. The meta tag goes in the head of your web page and might look something like this:

You can take it a step further and ask the spider to not even index your page at all:

You can indicate that you would like to be indexed or have your links followed, or not, or any combination. For example, these are all valid:

This is done on a page-by-page basis. In other words, each Web page would have a meta tag in the head of the document that might look something like this:

 	Some page on the Web 	 

Note that you are indicating your wishes here, and that robot spiders may or may not listen to your request.

There are other attribute values you can use. See the links for more reading.

Rel=”nofollow”

Here is where some of the confusion starts. Some people think that when you have a link on a page to another page, and you use the rel="nofollow" attribute/value pair, that search engine spiders will not follow this link.

Considering the name of the value (nofollow), plus the behaviour of the robots meta tag with nofollow, this seems like a logical assumption. However, it is false. Here’s why…

Back in 2005, several large search engines agreed that comment spam (comments in blogs, forums, etc with links to Web sites that existed only to drive traffic and were not really there are legitimate comments or links) was a serious problem. They came up with a plan to add an attribute to the (X)HTML anchor tag to help describe links that the site owner could not verify as being approved.

So, a normal link might look like this:

Lanoie.com

but if it was put there by a user in a comment block, the software could alter it to look like this:

rel="nofollow">Lanoie.com

As links are often counted as part of the ranking of Web sites by search engines, the more links that link spammers can have their scripts automatically put in comment blocks, the more popular their sites would become in the search engine result pages (SERPs). The idea is that if a search engine spider sees a nofollow link, it will not use it for ranking algorithms. This does not mean that the spider will not follow the link and index the destination page, it just means that it won’t help with that page’s rank.

So that’s the theory. What happens in real life? That depends on the players in the game.

Yahoo, Microsoft, and Google all initially agreed in 2005 to respect this attribute with their spiders. Ask and several other search sites seem to be aware of it, too. The trick is that they are not all doing the same thing with it.

Some sites do not follow the link or index the destination page at all. Other spiders seem to follow the link and index the page, but not count it towards the rankings, while others seem blissfully unaware that it even exists and ignore the attribute entirely.

The end result is that, with all three of these tools, you are only giving your wishes and you have no guarantee that they will be followed.

Personally, the comment spam was so bad on this blog that I had to disable comments entirely.