Thursday

Redirect http to https in IIS | Webconfig File | Godaddy Plesk Windows

Windows-based accounts use web.config files to handle redirection(http to https).

 

By using the following code in your web.config file automatically redirects visitors to the HTTPS version of your site.

 

Put this code in web.config file:

 

<configuration>
<system.webServer>
<rewrite>
    <rules>
 <rule name="HTTP to HTTPS redirect" stopProcessing="true"> 
 <match url="(.*)" /> 
 <conditions> 
  <add input="{HTTPS}" pattern="off" ignoreCase="true" />
 </conditions> 
 <action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}/{R:1}" />
</rule>   
    </rules>
</rewrite>
</system.webServer>
</configuration>

 

If you have an existing web.config file with already written code then only Insert following code before closing tag </system.webServer>

<rewrite>
    <rules>
 <rule name="HTTP to HTTPS redirect" stopProcessing="true"> 
 <match url="(.*)" /> 
 <conditions> 
  <add input="{HTTPS}" pattern="off" ignoreCase="true" />
 </conditions> 
 <action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}/{R:1}" />
</rule>   
    </rules>
</rewrite>

 

 

 
 
 

 

 

When Your Website URL Was Banned by Facebook

Try this tool built to help to identify any errors that Facebook is reading from your website, and help provide information on what needs to be fixed to unblock your link.


Facebook Debugger Toolhttps://developers.facebook.com/tools/debug/



Get help from your developers team or from the Facebook Developers team to make your website compliant and help our systems detect it as safe. Click the link below and select "Get Started" to open a support ticket with the Facebook Developers team (this option may not be available for all websites):

https://www.facebook.com/help/contact/571927962827151





Other Facebook Tools: https://developers.facebook.com/tools/

Sunday

What is Accelerated Mobile Pages (AMP) Technology & What is Use of AMP?

What is Google amp? 

  1. The Accelerated Mobile Pages (AMP) Project is a website publishing technology developed by Google as a competitor to Facebook's Instant Articles.
  2. The AMP Project was announced by Google on October 7, 2015.
  3. More than 30 news publishers and several technology companies (including Twitter, Pinterest, LinkedIn and WordPress) were initially announced as collaborators in the AMP Project.
  4. AMP pages first appeared to web users in February 2016, when Google began to show the AMP versions of webpages in mobile search results. Initially links to AMP pages were restricted to a “Top Stories” section of Google's mobile search results; by September 2016 Google started linking to AMP content in the main mobile search results area. AMP links in Google search are identified with an icon. 
  5. According to one of the co-founders of the AMP Project, Malte Ubl, AMP was originally called PCU, which stood for Portable Content Unit. 

What is AMP technology?

The AMP framework consists of three components: AMP HTML, which is standard HTML markup with web components; AMP JavaScript, which manages resource loading; and AMP caches, which serve and validate AMP pages.

What is the purpose & use of AMP?

AMP is an open-source HTML framework that provides a straightforward way to create web pages that are fast, smooth-loading and prioritize the user-experience above all else.

Business Benefits of AMP: AMP pages load near instantly, enabling you to offer a consistently fast experience across all devices and platforms.

Developer Benefits of AMP: Maintain flexibility and control and reduce complexity in your code.

Google AMP Testing Tool[Support Code Editing]https://search.google.com/test/amp

Wednesday

AdSense on Free WordPress Blog

Advertisements from third-party ad networks like Google AdSense are not allowed on WordPress.com(eg. XYZ.Wordpress.Com). If you’d like to run these types of ads on your blog, you may wish to try a self-hosted WordPress installation(Book Your Own Domain eg. XYZ.Com).

If you’d like to monetize your WordPress.com site with advertisements, WordAds is the official WordPress.com advertising program available for site owners.

Users upgrading to the WordPress.com Premium or Business plans have automatic access to the WordAds program and can set up advertising on their sites immediately. WordPress.com bloggers with moderate to high traffic and appropriate content also have the option to apply to the WordAds program. The program features ads from external ad networks such as Google, Facebook, AOL, and more. You can learn more about WordAds here.

For Detail Information Please Read here: https://en.support.wordpress.com/monetize-your-site/

Thursday

301 Redirect Non-www to www and index.html(htm,php)

Google, Bing Search Engine Consider these are Separate Domains:
  1. xyz.com
  2. xyz.com/
  3. xyz.com/index.html
  4. xyz.com/index.htm
  5. www.xyz.com
  6. www.xyz.com/
  7. www.xyz.com/index.htm
  8. www.xyz.com/index.html
So you can face Duplicate Website Content issue. Below are code to take care of this issue and 301 permanent redirect all those above listed domains to one single domain. 

.htaccess 301 Redirect Code With HTML Extensions:

        1. 301 permanent redirect index.html(htm) to folder
          RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.html?\ HTTP/
         RewriteRule ^(([^/]+/)*)index\.html?$ http://www.xyz.com/$1 [R=301,L]
         
        2. 301 permanent redirect non-www (non-canonical) to www
        RewriteCond %{HTTP_HOST} !^(www\.xyz\.com)?$
       RewriteRule (.*) http://www.xyz.com/$1 [R=301,L]

 X--------------------------X----------------------------------------X
You Can also Put above Two Codes together:

RewriteEngine On
# 301 permanent redirect index.html(htm) to folder
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.html?\ HTTP/
RewriteRule ^(([^/]+/)*)index\.html?$ http://www.xyz.com/$1 [R=301,L]

# 301 permanent redirect non-www (non-canonical) to www
RewriteCond %{HTTP_HOST} !^(www\.xyz\.com)?$
RewriteRule (.*) http://www.xyz.com/$1 [R=301,L]

X--------------------------X----------------------------------------X

.htaccess 301 Redirect Code With PHP Extensions:

 RewriteEngine On
# 301 permanent Redirect index.php to folder
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.php\ HTTP/
RewriteRule ^(([^/]+/)*)index\.php$ http://www.xyz.com/$1 [R=301,L]

# 301 permanent Redirect non-www (non-canonical) to www
RewriteCond %{HTTP_HOST} !^(www\.xyz\.com)?$
RewriteRule (.*) http://www.xyz.com/$1 [R=301,L] 



Universal Code: With HTML and PHP Extensions:
 
RewriteEngine On

# 301 permanent Redirect index.html(.htm and .php) to folder
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.(html?|php)\ HTTP/
RewriteRule ^(([^/]+/)*)index\.(html?|php)$ http://www.xyz.com/$1 [R=301,L]

# 301 permanent Redirect non-www (non-canonical) to www
RewriteCond %{HTTP_HOST} !^(www\.xyz\.com)?$
RewriteRule (.*) http://www.xyz.com/$1 [R=301,L]

  











Friday

Profile, Cover Photo Size & Dimensions of Facebook, Twitter, LinkedIn, Google Plus, Youtube, Pinterest

Dimensions of Various Social Media Profile Picture and Cover Photo:

  • Facebook Cover Photo Dimensions: 851(wide)x315(high)pixels
  • Facebook profile picture dimensions are 160x160px or 180x180px
  • Twitter Header photo dimensions:  1500(wide)x500(high) pixels
  • Twitter Profile photo dimensions: 400x400 pixels
  • LinkedIn Company Page Cover Photo:  Minimum 974(wide)x330(high) pixels
  • LinkedIn Company Page Standard Logo: 300(wide)x300 (high) pixels, (Maximum 4 MB)
  • Google Plus Page Cover Photo Size:  2120(wide) x 1192(high) pixels
  • Google Plus Profile Photo: 250 x 250 pixels.
  • Youtube Channel Art Size: 2560(wide) x 1440(high) pixels (Max Size 2 MB)
  • Pinterest Profile Photo:  120(wide)x80(high) pixels

Monday

Adding, Editing and Problem of Creating LinkedIn Company Page

Requirements for Adding Company Pages

Who can add a Company Page?

You can add a new Company Page only if you meet all of the following requirements:
  1. You must have a personal LinkedIn profile set up with your true first and last name.
  2. Your profile is at least 7 days old.
  3. Your profile strength must be listed as Intermediate or All Star.
  4. You must have several connections on your profile.
  5. You're a current company employee and your position is listed in the Experience section on your profile.
  6. You have a company email address (e.g. john@companyname.com) added and confirmed on your LinkedIn account.
  7. Your company's email domain is unique to the company.
Note: A domain can't be used more than once to create a Company Page. Because domains like gmail.com, yahoo.com or similar generic email services are not unique to one company, those domains can't be used to create a Company Page. You might consider creating a group if your company doesn't have a unique email domain.

Adding a Company Page

How do I add a Company Page?

A Company Page helps others learn more about your business, brand, products and services, and job opportunities. You can create one from the Add a Company page. 

Note: Before starting, you must own a personal LinkedIn profile set up with your true first and last name. Also, make sure you meet our requirements to add a Company Page and that your current company doesn't already have one. 

To add a Company Page:
  1. Move your cursor over Interests at the top of your homepage and select Companies.
  2. Click Create in the Create a Company Page box on the right.
  3. Enter your company's official name and your work email address.
  4. Click Continue and enter your company information.
    • If the work email address you provide is an unconfirmed email address on your LinkedIn account, a message will be sent to that address. Follow the instructions in the message to confirm your email address, and then use the instructions above to add the Company Page.
    • A red error message may appear if you have problems adding a Company Page.
    • A preview of your Company Page is not available. When you publish the page, it is live on our website.
Note: To publish your Company Page you must include a company description (250-2000 characters including spaces), and company website URL. 

Problem Adding Company Page

Why am I having problems adding a Company Page?

When you're trying to add a Company Page, a red error message may appear if one or more of the following is true: 

  • A Company Page already exists. To find it, search for your company using the Search box on LinkedIn. If it needs updated, learn how to edit your Company Page.
  • You don't meet the requirements to add a Company Page.
  • The email address you entered on the Add a Company page is associated with a different company. An email domain must be unique to your company, and can only be used once to create a company page.
If the email domain is associated with an existing Company Page, we recommend reaching out to the admin(s) of the page to coordinate your request for a new/additional Company Page.

Editing Your Company Page
 
How do I edit my Company Page?

You must be a Company Page administrator in order to edit your Company Page. To edit information on your Company Page:

  1. Move your cursor over Interests at the top of your homepage and select Companies from the drop down.
  2. Select the Company Page that you’d like to edit from the Manage your pages box on the right.
  3. Click the blue Edit button in the upper right.
  4. Make your changes and click Publish to save.
Important notes:

If you're an administrator and still can't make edits to your Company Page, please contact us with the following information:

  1. Your company name
  2. Your company email address
  3. The URL (webpage link) for the Company Page on LinkedIn
  4. The changes you want to make
Note: LinkedIn Customer Support cannot modify the company approved admin list unless there's a technical issue. The security of the admin list must be controlled by the assigned admins for the Company Page.

Sunday

What is ROR and How is ROR different from Google Sitemaps?

What is ROR?

ROR (Resources of a Resource) is a rapidly growing independant XML format for describing any object of your content in a generic fashion, so any search engine can better understand that content. RORweb.com is the official ROR website.

ROR promotes the concept of structured feeds (which is related to the concept of structured blogging) enabling search engines to complement text search with structured information to better understand meaning. ROR information is typically stored in a ROR feed called ror.xml placed in your website's main directory. Unlike Google Base, ROR feeds can be easily accessed by all search engines: at http://www.your-website-name.com/ror.xml
You can think of your ROR feed as a powerful structured feed for describing all your objects to the search engines: products, services, reviews, discounts, images, events, schedule, podcasts, anything you want.

The current object types and attributes of the ROR format can be found here. We are working with several companies and individuals in defining new object types and attributes for everyone to use. If you want to participate in this effort (i.e. submit a schema, suggest new types and attributes), please contact us at the email address above.

As we expand the ROR format, our goal is to re-use exisisting data structures and formats as much as possible.


How is ROR different from Google Sitemaps?

ROR was created before Goolge Sitemaps, as a way to describe website information for the search engines. ROR is much more than Google Sitemaps, it does not only help describe your sitemap, but also products, services, feeds, articles, reviews, archives, and much more bjects. Also, ROR Sitemaps are automatically readable by all search engines, including Google.


What is a ROR feed (ror.xml)?

A ROR feed is an XML file for describing your content to the search engines (products, servives, reviews, classified ads, job listing, anything you want). The main ROR feed is usually named ror.xml and located in the main (or top) directory of your website (in the same directory as your index.htm file).


How do I create a ROR feed?

Just use the RORFeed Generator or the RORSitemap Generator. These tools make it very easy to create a ROR feed. If you have a Froogle feed or Yahoo Shopping feed, you can generate a ROR feed from either of them using the ROR Feed Generator. Or you can also ask a ROR provider to create a ROR feed for you. All the details about the ROR format can be found in the ROR specification.



(Source: http://www.rorweb.com/)

Thursday

How to create a 301 Redirect ?

301 Redirect
301 redirect is the most efficient and Search Engine Friendly method for webpage redirection. It's not that hard to implement and it should preserve your search engine rankings for that particular page. If you have to change file names or move pages around, it's the safest option. The code "301" is interpreted as "moved permanently".
You can Test your redirection with SearchEngine Friendly Redirect Checker
Below are a Couple of methods to implement URL Redirection via code and htaccess redirect


IIS Redirect
  • In internet services manager, right click on the file or folder you wish to redirect
  • Select the radio titled "a redirection to a URL".
  • Enter the redirection page
  • Check "The exact url entered above" and the "A permanent redirection for this resource"
  • Click on 'Apply'
ColdFusion Redirect
<.cfheader statuscode="301" statustext="Moved permanently">
<.cfheader name="Location" value="http://www.new-url.com"> 



PHP Redirect
<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.new-url.com" );
?> 



ASP Redirect
<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location","http://www.new-url.com/"
%> 



ASP .NET Redirect
<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location","http://www.new-url.com");
}
</script> 



JSP (Java) Redirect
<%
response.setStatus(301);
response.setHeader( "Location", "http://www.new-url.com/" );
response.setHeader( "Connection", "close" );
%> 



CGI PERL Redirect
$q = new CGI;
print $q->redirect("http://www.new-url.com/"); 



Ruby on Rails Redirect
def old_action
headers["Status"] = "301 Moved Permanently"
redirect_to "http://www.new-url.com/"
end 



Redirect Old domain to New domain using htaccess redirect
Create a .htaccess file with the below code, it will ensure that all your directories and pages of your old domain will get correctly redirected to your new domain.
The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]
Please REPLACE www.newdomain.com in the above code with your actual domain name.
In addition to the redirect I would suggest that you contact every backlinking site to modify their backlink to point to your new website.
Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.


Redirect to www using htaccess redirect
Create a .htaccess file with the below code, it will ensure that all requests coming in to domain.com will get redirected to www.domain.com
The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]
Please REPLACE domain.com and www.newdomain.com with your actual domain name.
Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.



Wednesday

Create a new page on your blog


You can organize your blog into separate sections like “About me,” “Contact me” or “Advertise” using pages. Pages appear as either tabs on the top of your page or links on the side of the page. Pages differ from your homepage because they are usually used to display content that doesn't need to change very often. For example, the blog below has pages for “about me,” “workshops & classes,” “shop online” and more.


PubSubHubbub Protocol

PubSubHubbub Protocol

To integrate with the social data hub, you will need to publish a global Atom/RSS Activity Stream feed of social activities for your social network/platform, and deliver it via PubSubHubbub.

PubSubHubbub (PSHB) is an open, server-to-server, web-hook-based pubsub (publish/subscribe) protocol that is an extension to Atom and RSS. Parties (servers) speaking the PubSubHubbub protocol can get near-instant notifications (via WebHook callbacks) when a topic (feed URL) they're interested in is updated.

Visit here to know more information about PubSubHubbub: https://code.google.com/p/pubsubhubbub/
                                       
                                     







Source : https://developers.google.com/analytics/devguides/socialdata/

Analytics Social Data Hub

The social data hub is a free platform that social networks and other social platforms can use to integrate their social data with Google Analytics.

In order to integrate you will need to publish a global Activity Stream feed of activities from your social network/platform. This feed then needs to be delivered to the social data hub. To minimize the resource load for both you and Google, we recommend implementing a “push-based” mechanism, via the PubSubHubbub (PSHB) protocol.

The list of partners integrated with the social data hub are:


  1. AllVoices
  2. Badoo
  3. Blogger
  4. Delicious
  5. Digg
  6. Diigo
  7. Disqus
  8. Echo
  9. Gigya
  10. Google+
  11. Google Groups
  12. Hatena
  13. Meetup
  14. Read It Later
  15. Reddit
  16. Screen Rant
  17. SodaHead
  18. TypePad
  19. VKontakte
  20. yaplog!






(Source : https://developers.google.com/analytics/devguides/socialdata/)

How To Fix 404 Not Found Error?

What is a Not Found error?

Google discovers content by following links from one page to another. Generally, a Not Found status error (usually a 404 HTTP status code) is returned when Googlebot attempts to visit a page that doesn’t exist—either because you deleted or renamed it without redirecting the old URL to a new page, or because of a typo in a link.

Dealing with Not Found errors

Generally, 404 errors don’t impact your site’s ranking in Google, and you can safely ignore them. Typically, they are caused by typos, misconfigurations (for example, for links that are automatically generated by a content management system) or by Google’s increased efforts to recognize and crawl links in embedded content such as JavaScript.  Here are some pointers to help you investigate:

See where invalid links are coming from by viewing the Linked from these pages section, which you reach by clicking the URL.

Fix or delete links that from your own site.

Capture intended traffic from misspelled links on other sites with 301 redirects.
For example, a misspelling of a legitimate URL (www.example.com/redshuz instead of www.example.com/redshoes) probably happens when someone intended to link to your site and simply made a typo. In this case, you can capture that misspelled URL in your server configuration and create a 301 redirect to the correct URL. You can also contact the webmaster of a site with an incorrect link, and ask for the link to be updated or removed.

404s are a perfectly normal (and in many ways desirable) part of the web. You will likely never be able to control every link to your site, or resolve every 404 error listed in Webmaster Tools. Instead, check the top-ranking issues, fix those if possible, and then move on.

When to return a 404 status code

When you remove a page from your site, think about whether that content is moving somewhere else, or whether you no longer plan to have that type of content on your site.

When moving content to a new URL, redirect the old URL to the new URL—that way when users come to the old URL looking for that content, they’ll be automatically redirected to something relevant to what they were looking for.

When you permanently remove content without intending to replace it with newer, related content, let the old URL return a 404 or 410. Currently Google treats 410s (Gone) the same as 404s (Not found).
Returning a code other than 404 or 410 for a non-existent page (or redirecting users to another page, such as the homepage, instead of returning a 404) can be problematic. Such pages are called soft 404s, and can be confusing to both users and search engines.

Unexpected 404 errors

In Crawl Errors, you might occasionally see 404 errors for URLs you don't believe exist on your own site or on the web. These unexpected URLs might be generated by Googlebot trying to follow links found in JavaScript, Flash files, or other embedded content.

For example, your site may use the following code to track file downloads in Google Analytics:

<a href="helloworld.pdf" onClick="_gaq.push(['_trackPageview','/download-helloworld']);">Hello World PDF</a>
When it sees this, as an example, Googlebot might try to crawl the URL http://www.example.com/download-helloworld, even though it’s not a real page. In this case, the link may appear as a 404 (Not Found) error in the Crawl Errors feature in Webmaster Tools.

Google strives to detect these types of issues and resolve them so that they will disappear from Crawl Errors. 

Soft 404 errors in Google Webmaster Tools

What is a Soft 404 error?

Usually, when a visitor requests a page on your site that doesn’t exist, a web server returns a 404 (not found) error. This HTTP response code clearly tells both browsers and search engines that the page doesn’t exist. As a result, the content of the page (if any) won’t be crawled or indexed by search engines.

A soft 404 occurs when your server returns a real page for a URL that doesn't actually exist on your site. This usually happens when your server handles faulty or non-existent URLs as "OK," and redirects the user to a valid page like the home page or a "custom" 404 page.

This is a problem because search engines might spend much of their time crawling and indexing non-existent, often duplicative URLs on your site. This can negatively impact your site's crawl coverage because your real, unique URLs might not be discovered as quickly or visited as frequently due to the time Googlebot spends on non-existent pages.

How to deal with Soft 404 Errors ?

We recommend that you configure your server to always return either a 404 (Not found) or a 410 (Gone) response code in response to a request for a non-existing page. You can improve your visitors' experience by setting up a custom 404 page when returning a 404 response code. For example, you could create a page containing a list of your most popular pages, or a link to your home page, or a feedback link. You can also use the Webmaster Tools Custom 404 widget to add a search box and more site search options to your site. But it's important to remember that it’s not enough to just create a page that displays a 404 message. You also need to return the correct 404 or 410 HTTP response code.


(Source: https://support.google.com/webmasters/#)

Setting up 301 Redirects

Change page URLs with 301 redirects

If you need to change the URL of a page as it is shown in search engine results, we recommend that you use a server-side 301 redirect. This is the best way to ensure that users and search engines are directed to the correct page. The 301 status code means that a page has permanently moved to a new location.
301 redirects are particularly useful in the following circumstances:
  1. You've moved your site to a new domain, and you want to make the transition as seamless as possible.
  2. People access your site through several different URLs. If, for example, your home page can be reached in multiple ways - for instance, http://example.com/home, http://home.example.com, or http://www.example.com - it's a good idea to pick one of those URLs as your preferred (canonical) destination, and use 301 redirects to send traffic from the other URLs to your preferred URL. You can also use Webmaster Tools to set your preferred domain.
  3. You're merging two websites and want to make sure that links to outdated URLs are redirected to the correct pages.
To implement a 301 redirect for websites that are hosted on servers running Apache, you'll need access to your server's .htaccess file. (If you're not sure about your access or your server software, check with your webhoster.) For more information, consult the Apache .htaccess Tutorial and the Apache URL Rewriting Guide. If your site is hosted on a server running other software, check with your hoster for more details.

(Source: https://support.google.com/webmasters/#)



Creating an User Friendly 404 Page for Our Site

A 404 page is what a user sees when they try to reach a non-existent page on your site (because they've clicked on a broken link, the page has been deleted, or they've mistyped a URL). A 404 page is called that because in response to a request for a missing page, webservers send back a HTTP status code of 404 to indicate that a page is not found. While the standard 404 page can vary depending on your ISP, it usually doesn't provide the user with any useful information, and most users may just surf away from your site.

If you have access to your server, we recommend that you create a custom 404 page. A good custom 404 page will help people find the information they're looking for, as well as providing other helpful content and encouraging them to explore your site further.

(Note: This article covers guidelines for creating the content of your custom 404 page. For information on configuring your server to display your new 404 page, check your server or web hoster documentation. You should still make sure that your webserver returns a 404 status code to users and spiders, so that search engines don't accidentally index your custom 404 page.)

Because a 404 page can also be a standard HTML page, you can customize it any way you want. Here are some suggestions for creating an effective 404 page that can help keep visitors on your site and help them find the information they're looking for:

  • Tell visitors clearly that the page they're looking for can't be found. Use language that is friendly and inviting.
  • Make sure your 404 page uses the same look and feel (including navigation) as the rest of your site.
  • Consider adding links to your most popular articles or posts, as well as a link to your site's home page.
  • Think about providing a way for users to report a broken link.
  • No matter how beautiful and useful your custom 404 page, you probably don't want it to appear in Google search results. In order to prevent 404 pages from being indexed by Google and other search engines, make sure that your webserver returns an actual 404 HTTP status code when a missing page is requested.
  • Use the Enhance 404 widget to embed a search box on your custom 404 page and provide users with useful information to help them find the information they need.
  • Use the Change of Address tool to tell Google about your site's move.
(Source: https://support.google.com/webmasters/#)

Tuesday

What are alt attributes useful for?

What are alt attributes useful for?

The alt attribute is defined in a set of tags (namely, img, area and optionally for input and applet) to allow you to provide a text equivalent for the object.
A text equivalent brings the following benefits to your web site and its visitors in the following common situations:
  • nowadays, Web browsers are available in a very wide variety of platforms with very different capacities; some cannot display images at all or only a restricted set of type of images; some can be configured to not load images. If your code has the alt attribute set in its images, most of these browsers will display the description you gave instead of the images
  • some of your visitors cannot see images, be they blind, color-blind, low-sighted; the alt attribute is of great help for those people that can rely on it to have a good idea of what's on your page
  • search engine bots belong to the two above categories: if you want your website to be indexed as well as it deserves, use the alt attribute to make sure that they won't miss important sections of your pages.

What should I put in my alt attribute?

The generic rule for the content of the alt attribute is: use text that fulfills the same function as the image.
Some more specific rules:
  • if the image is simply decorated text , put the text in the alt attribute
  • if the image is used to create bullets in a list, a horizontal line, or other similar decoration, it is fine to have an empty alt attribute (e.g., alt=""), but it is better to use things like list-style-image in CSS
  • if the image presents a lot of important information, try to summarize it in a short line for the alt attribute and add a longdesc link to a more detailed description

(Source: http://www.w3.org/)

Friday

How to Fix URL Canonicalization

Search engines consider URLs with and without "www" as two different websites. Test your site for potential URL canonicalization issues. Canonicalization describes how a site can use slightly different URLs for the same page (for example, if http://www.example.com and http://example.com displays the same page but do not resolve to the same URL). If this happens, search engines may be unsure as to which URL is the correct one to index.

Solution:

In order to pass this test you must consider using a 301 re-write rule in your .htaccess file so that both addresses (http://example.com and http://www.example.com) resolve to the same URL.
- If you want to redirect http://www.example.com to http://example.com, you can use this:

RewriteCond %{HTTP_HOST} ^www\.example\.com$
RewriteRule ^/?$ "http\:\/\/example\.com\/" [R=301,L]


- If you want to redirect http://example.com to http://www.example.com, you can use this:

RewriteCond %{HTTP_HOST} !^www.example.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]

Note that you must put the above lines somewhere after RewriteEngine On line.

Learn more about canonicalization issues at: http://www.mattcutts.com/blog/seo-advice-url-canonicalization/

Use and Advantages of Robots.txt With Example

"robots.txt" file can protect private content from appearing online, save bandwidth, and lower load on your server. A missing "robots.txt" file also generates additional errors in your apache log whenever robots request one.
In order to pass this test you must create and proper install a robots.txt file.
For this, you can use any program that produces a text file or you can use an
online tool (Google Webmaster Tools has this feature).
Remember to use all lower case for the filename: robots.txt, not ROBOTS.TXT.
A simple robots.txt file looks like this:

User-agent: *
Disallow: /cgi-bin/
Disallow: /images/
Disallow: /pages/thankyou.html
This would block all search engine robots from visiting "cgi-bin" and "images" directories and the page "http://www.yoursite.com/pages/thankyou.html"

TIPS:
  • You need a separate Disallow line for every URL prefix you want to exclude
  • You may not have blank lines in a record because they are used to delimit
    multiple records
  • Notice that before the Disallow command, you have the command: User- agent: *.
    The User-agent: part specifies which robot you want to block. Major known crawlers are: Googlebot (Google), Googlebot-Image (Google Image Search), Baiduspider (Baidu), Bingbot (Bing)
  • One important thing to know if you are creating your own robots.txt file is that although the wildcard (*) is used in the User-agent line (meaning "any robot"), it is not allowed in the Disallow line.
  • Regular expression are not supported in either the User-agent or Disallow lines
    Once you have your robots.txt file, you can upload it in the top-level directory of your web server. After that, make sure you set the permissions on the file so that visitors (like search engines) can read it.

Google’s Updated Link Scheme Guidelines

Any links intended to manipulate PageRank or a site's ranking in Google search results may be considered part of a link scheme and a violation of Google’s Webmaster Guidelines. This includes any behavior that manipulates links to your site or outgoing links from your site.

The following are examples of link schemes which can negatively impact a site's ranking in search results:
  • Buying or selling links that pass PageRank. This includes exchanging money for links, or posts that contain links; exchanging goods or services for links; or sending someone a “free” product in exchange for them writing about it and including a link
  • Excessive link exchanges ("Link to me and I'll link to you") or partner pages exclusively for the sake of cross-linking
  • Large-scale article marketing or guest posting campaigns with keyword-rich anchor text links
  • Using automated programs or services to create links to your site
Additionally, creating links that weren’t editorially placed or vouched for by the site’s owner on a page, otherwise known as unnatural links, can be considered a violation of our guidelines. Here are a few common examples of unnatural links that may violate our guidelines:
  • Text advertisements that pass PageRank
  • Advertorials or native advertising where payment is received for articles that include links that pass PageRank
  • Links with optimized anchor text in articles or press releases distributed on other sites. For example:  
There are many wedding rings on the market. If you want to have a wedding, you will have to pick the best ring. You will also need to buy flowers and a wedding dress.

  • Low-quality directory or bookmark site links
  • Keyword-rich, hidden or low-quality links embedded in widgets that are distributed across various sites, for example:
        Visitors to this page: 1,472
        car insurance
  • Widely distributed links in the footers or templates of various sites
  • Forum comments with optimized links in the post or signature, for example:
        Thanks, that’s great info!
        - Paul
        paul’s pizza san diego pizza best pizza san diego
Note that PPC (pay-per-click) advertising links that don’t pass PageRank to the buyer of the ad do not violate our guidelines. You can prevent PageRank from passing in several ways, such as:
  • Adding a rel="nofollow" attribute to the <a> tag
  • Redirecting the links to an intermediate page that is blocked from search engines with a robots.txt file
The best way to get other sites to create high-quality, relevant links to yours is to create unique, relevant content that can naturally gain popularity in the Internet community. Creating good content pays off: Links are usually editorial votes given by choice, and the more useful content you have, the greater the chances someone else will find that content valuable to their readers and link to it.

If you see a site that is participating in link schemes intended to manipulate PageRank,let us know. We'll use your information to improve our algorithmic detection of such links.