search engines etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
search engines etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster

29 Ekim 2013 Salı

Awesome What a Canonical Link is and How to Use it Properly

Search engine optimization continues to be one of the most important areas of opportunity for many websites. Adhering to the strict rules set out by major search engines, especially Google, it is the best way to ensure that a website is placed on the first page of a keyword-targeted search and not on the last page of those results. Especially in recent years, as Google and other search engines have partnered to create SEO standards, this has become true for major corporate websites and small blogs alike. Whether it’s the eliminate of backlinks, the detection of keyword spam, or the implementation of the canonical link structure, a number of new tools are being used to help web developers leap to the front pages of any Google, Yahoo!, or Bing search.


The most recent development is the implementation of canonical links, which stretches back only to 2009. It was during the middle of that year when Microsoft, Yahoo!, and Google, all agreed upon the standard and its implementation in existing websites. The new link structure was developed as a meta tag, as opposed to a standard tag in the body of the page, and served to unify a website’s identical or similar pages into one “canon” or similar block of aesthetics and content. In the ensuing three years, some serious confusion has raised as just how this canonical link structure is implemented into websites, and where it’s appropriate for inclusion. Especially because it’s a meta tag, many developers have steered clear of canonical usage in their designs. Furthermore, the function of this tag can easily be confused with a 301 Redirect via an “.htaccess” file, making its inclusion even more confusing and often avoided.


The Canonical Link: What it Does for Search Engine Optimization


Modern content management systems have a really unique way of presenting content that allows it to be displayed in multiple places throughout the website’s URL construction. That’s because content management software typically places it into both a relevant category and into a date-based archive that can be perused by users at any time. Additionally, it will often place the entry on the homepage until it has been replaced by several newer composures. In all, when categories, tags, and date-based archives are combined, it’s possible for a single entry to appear up to four times within the same website, at the same domain name.



As far as search engines are concerned, every single one of these instances needs to be indexed separately and returned in search results as a completely separate entity. That behavior has not changed, even with the introduction of canonical links and the recognition of content management software as the primary driver of online content. So, without any further direction, search engines like Google, Yahoo!, and Bing, will just index a blog post four times and display it in search results four times. This is often why major search engines note that they “omitted duplicate results,” even when website owners know that their entry appears nowhere else but on their own website.


When a canonical link meta tag is included into a template, it essentially informs the major search engines that an entry page is part of a larger grouping of posts that should not be displayed in a duplicate manner within search results. For example, the tag could be displayed on every category and tag-based page that simply tells the search engine to consider those pages the same as a standalone entry page. It would then link together the standalone entry page, the category page, and the tag page, so that they are all perceived to be the same thing for the search engine. This boosts a website’s search engine optimization because the major search engines no longer consider every separate entry page to be a separate search result. They now view that content as a single, unified source, and they’ll rank it higher because it’s less “diluted” in search engine results. That can only lead to good things for the website’s administrator, as higher search engine rankings typically lead to more ad clicks, conversions, and e-commerce.


How a Canonical Link Meta Tag Differs from a Standard 301 Redirect


Anyone reading this entry and relating page locations to search engine optimization technique is probably thinking that a canonical link is just a less-invasive 301 redirection. That is actually not true at all, as a canonical link actually requires no action on the part of site users or the search engines. Indeed, Google themselves have noted that the canonical link is an “instruction that they’ll follow strongly,” rather than a requirement that they’ll be forced to adhere to.


A 301 Redirect essentially requires users, browsers, and search engine robots, to update their bookmarks to the new site of a website’s old content. This is typically done when a website switches domain names, changes its permalink structure, or commits some other major shift in both the “how” and “where” of its own legacy content. This is simply not the function of a canonical link. Indeed, the link itself does not redirect a user, browser, or search engine robot, to any of the site’s content.


Essentially, a canonical link sits within the page’s <head> tag and merely acts as an instruction to indicate which part of the website serves as the current content’s “parent” page. If the content belongs chiefly to a date-based archive, this will be indicated even on category and taxonomy pages. The search engine will then recognize that the archive page is the primary place where the content should be read, indexed, and interacted with, and it will update its own search results to reflect this.


But nothing will force the search engine to do this, and no forced redirection will happen if a user visits an entry’s category-based page from a search engine. They’ll still see that content, and the URL will still state that they’re on a category page — because they are. The tag simply has more to do with search engine semantics than it does with the physical location of the content itself, and that’s why it’s a valid and important part of search engine optimization for websites running on content management software solutions.


How to Employ the Canonical Link to Reduce Duplicate Search Indexes


The important thing to know about a canonical link tag is that it should never link to another version of the current post. This can create all kinds of problems with search engines, and they won’t know how to tell which content should be indexed and which content should be left alone. Instead, canonical links are used to link back to the “parent” page of a duplicate entry, and tell the search engine, essentially, “this entry is part of a category page” rather than “this content stands alone.” Here’s a common example:


The categorized entry is featured here:


http://example.com/category/cookies/my-entrys-title/

The canonical link to reduce the duplicate entry would look like this:


<link rel="canonical" href="http://www.example.com/category/cookies/" />

This is pretty easy to do with permalinked URLs, but the same thing can also be accomplished when using a canonical link with standard URLs generated by a content management system. In that case, the root part of the URL becomes the canonical link. A typical example looks like the following:


The standard entry URL is here:


http://example.com/blog?c=124&e=3

When altered by a canonical URL tag, this gets changed to the following example:


<link rel="canonical" href="http://example.com/blog?c=124" />


At all times, the entry’s own permalink or URL ID number should be removed from the URL and it should be linked back to the page which its own “parent.” This parent-child relationship is what search engines will interpret when crawling the website and they’ll be much more able to properly list and rank the website’s posts in search engine results.


Canonical Support in Content Management Systems: Things to Know and Quirks to Recognize


Widespread search engine support for canonical links has been around for roughly three years, but many search engines do not currently support this essential meta tag with their native feature set. That’s a major problem for websites that require this tag as the last piece of their SEO puzzle. The good news, however, is that the WordPress content management system has supported the use of canonical link meta tags since the release of version 2.9 of its popular software. These tags are automatically generated on non-index pages that are produced and rendered by the WordPress Dashboard and the database, and they can be really helpful when improving a website’s ranking in search results.


This comes with a major asterisk, however, as a number of high-powered WordPress developers have noted that the implementation of these canonical links is not as good as it should be, and in some cases the links are entirely wrong. Those things can actually negatively affect a website’s search engine rankings and overall search engine optimization, and that can be a real problem for users of the software who don’t modify the links to be a bit more appropriate. Because of this, WordPress developers have actually taken the remarkable step of creating plugins to specifically remove the software’s default canonical links from the header of every page.


Instead, those same developers are now releasing their own plugins that include much more appropriate canonical link meta tags in order to improve a website’s search engine optimization without the botched implementation pushed by default WordPress installations. In many of these plugs, a custom settings panel is created within the WordPress Dashboard that allows website administrators to define their own canonical links, which will override both the default WordPress setting and the plugin’s own default values.


Outside of the WordPress ecosystem, canonical links have largely failed to be embraced as a default setting in major competing content management platforms. MovableType, Joomla, and Drupal, all can support canonical links via a plugin. They do not, however, force canonical links on their users as an out-of-the-box solution. And, given the botched WordPress implementation of these links, that actually might be a good thing for many users.


The important thing to know when choosing a canonical link solution for any major content management platform is to understand that these links are a bit subjective and a bit complex to implement properly. They have been documented relatively poorly, especially by Google, and most developers are still learning how to use them properly in a way that does not damage their own search engine optimization. WordPress’ own developers adhere to an outdated and outmoded implementation of these links that has been proven to have negative effects, while other content management systems have taken a hands-off approach that allows their users to define their own uses for the links.


When in Doubt, Leave it Out


Canonical links are an important and sometimes essential tool when fully optimizing a website for great search engine rankings. However, they are not the primary way that Google ranks and rewards a website for relevant content in a keyword-targeted search. If anything, these links should be considered the icing on an already-robust search engine optimization cake. They might be the difference between landing on the first and second pages in some cases, but they won’t make a difference between a website being on page one, or page twenty.


The key to leveraging these links is to place them on the right pages, but not on all pages as in WordPress. Duplicate entries should be indicated by these links, and they should simply be shown to Google as the “child” pages of a category or tag, rather than as the primary source of content within the website. When that is done properly, canonical links can actually have a great effect on search engine rankings and move the site up a few notches in relevant searches.


Always implement these tags with care and, as always, be sure to use Google’s own tools to monitor how a website is performing after canonical link meta tags have been implemented. If adverse rankings follow implementation, it’s a good indication that the tags are pointing to the wrong content or parent page, and Google is pushing the website down accordingly.

Awesome What is .htaccess?

One of the most common files found on most web hosting servers also happens to be one of the least understood, especially for a large number of novice web hosting clients and website administrators. That file, called “.htaccess,” is used to determine any number of important settings, from the 404 Error page that is displayed to site users to the password applied to certain files or directories on the web server itself. Despite its vast functionality and usability, and the essential functions it enables that can only be setup with an .htaccess file, a large number of people simply don’t understand the syntax or functions it permits. They’ve never had to master this file, or they’ve never understood the importance of learning to leverage the vast security settings and permissions-based directory access that .htaccess is most closely associated with.


Website administrators who are looking to get a greater degree of control over their file permissions, directory access, passwords, error pages, and search engine optimization have no better tool in their arsenal than the standard .htaccess file. This article will attempt to explain the “how” and “why” of the .htaccess file, and it will make the functionality of this important document pretty obvious to users of all experience levels.


What is an .htaccess file?


Generally speaking, an .htaccess file is a server document used to define directory or file permissions, URL rewrite rules, or error messages. It is most commonly associated with the display of a 404 Error message when an end user attempts to go to a URL that simply does not exist. Beyond that, the .htaccess file is commonly used to improve search engine optimization. The use of 301 redirects to guide search engines toward a content’s new location or URL is the chief responsibility of the .htaccess file and the brief lines of code that it contains.


The .htaccess file is also closely associated with the modern permalink structure that dominates content management systems like WordPress. Before URL rewriting become popular, pages and posts would be found at links like the following:


http://domain.com/blog?p=1355

When the .htaccess file is used to “rewrite” the URL, it uses things like the post’s date, time, category, tags, and other information, to generate a series of readable links with words — rather than numbers — forming the URL. That leads to permalinks like the following example:


http://domain.com/archives/this-post-has-a-title/


Search engines actually respond much better to the second form of URL, and that’s why they’ve become so popular in recent years. It’s also why URL rewriting has become one of the most common uses of the .htaccess file, even among website owners and content management administrators who otherwise have no knowledge of the file itself. Most content management platforms are actually able to create and modify the .htaccess document on their own, reducing or eliminating the need for administrator intervention.


The .htaccess file is most closely associated with web hosting packages that are based on the Apache architecture. It is common across both Apache 1.x and Apache 2.x instances, and it has virtually the same functions and programming language between these two iterations of the web’s most popular open source server software.


Do I have an .htaccess file, or am I allowed to have one?


The first thing that most people notice about an .htaccess document is that its filename actually starts with a period rather than with a typical word followed by a file extension. This is done intentionally, as files or folders that begin with a period are considered “hidden” by open source operating systems. That means that the .htaccess file cannot be seen by traditional visitors to a website, and thus cannot be modified or manipulated for malicious purposes.


This unique way of naming the file does have a side effect that sometimes causes a bit of confusion among users, however. Because it is designed to be hidden, it mostly cannot be seen by using a traditional FTP client on a Mac or Windows desktop operating environment. This makes a lot of newer developers simply assume that the do not have an .htaccess file at all, and they’ll begin creating a new file to establish their rewrites, error codes, and directory permissions. In many cases, though, web hosts actually create a standard .htaccess file by default and upload it to the server to be modified by the administrator.



This must be done, typically, by logging into the Plesk Panel or cPanel backend environment and browsing to the .htaccess file via the web-based file browser. This file browser is designed to show hidden directories and files, and it will display the .htaccess file in the “public_html” directory even as traditional web browser and FTP application directory listings tend to hide it. From there, it can be edited using the web-based file browser’s built-in text editor; it can then be saved and automatically uploaded to the server at the same time.


In some cases, web hosts actually might not permit their customers to create or modify an .htaccess file at all. This is often the case on free web hosts or lower-priced operations that are more restrictive on permissions and capabilities. Often, they’ll enable the .htaccess file at a higher price point in order to encourage the adoption of more expensive web hosting plans. To determine if this is the case, simply use the aforementioned web-based file browser to look for an .htaccess document in the “public_html” directory. If one does not exist, attempt to create it and upload it to the server. An error message from the server will indicate that the user does not have permission to create this file; the lack of any such error will simply indicate that the host did not create their own .htaccess file by default, but will not indicate that this file cannot be created and maintained by the customer.


When is it appropriate to invoke the functionality of an .htaccess file?


An .htaccess file is best used to code website errors (like 404 or 301 page errors), URL rewrites, or directory permissions. This is appropriate when pointing to new locations of old content, creating an error page for content that no longer exists, requiring a password to access certain files or directories on the server, or pointing complex numerical URLs to more simplistic permalinks using software like WordPress. Here are some typical uses for the .htaccess file demonstrated an explained:


1. Redirecting an Old Link to a New One Via the 301 Page Error


One of the biggest problems that most websites encounter when moving content is that their search engine ranking drops dramatically right after the move. This is because old content is not properly relocated to the new location, and the search engine itself is never informed that a move took place. Instead, the search engine encounters a 404 Error, which is essentially like telling the search engine that it has arrived at a dead end. That dead end will force the search engine to remove the link from its search results entirely, and the website in question will have to rebuild its reputation as if it is starting from nothing.


To prevent this, search engine optimization professionals everywhere recommend using a 301 redirect as part of the .htaccess file. This error is known as a “permanent redirect,” and it will point the search engine toward the new location of a file or a specific block of content. In addition, it will inform the search engine that the content has moved on a permanent basis, and will not be moving back. This will prompt the search engine robot in question to update the link in its present search results, rather than remove it entirely and force the website to start over and rebuild its high ranking. Here is what a typical redirect looks like:


Redirect 301 http://domain.com/old-permalink-here/ http://domain.com/archive/new-permalink-here/


The above code should be pretty straightforward but, for those who are confused, it breaks down pretty easily. The first part of the code, “Redirect 301,” establishes the type of error and redirection that will occur when an end user or a search engine robot visits the old location of the content. The first URL represents the old link to that content, while the second URL represents the updated location. While this example uses the same domain name in both URLS (domain.com), the 301 redirect can actually be used to redirect users and search engines to an entirely new domain name.


2. Protecting Files or Directories with .htaccess and .htpasswd


Any user who has ever stumbled upon a directory or file and has been greeted with a password prompt has seen the .htaccess and .htpasswd files in action. These two files work hand-in-hand to require a valid username and password when accessing a file; if no such password is provided, they simply display a “Restricted Access” error message and the invalid user is turned away. This is the perfect way to protect sensitive files, administration areas, or sensitive login screens, from malicious hackers and other users who might have less-reputable ideas about what they want to do at a given website.


The first step in this process is to create an .htpasswd file and place it into the directory where the protected file is located. If it’s protecting a given directory, the .htpasswd file should be placed inside that protected directory. The content of the file is really easy to create, as it contains a username and password separated by a colon. Here’s the basic setup:


ValidUser:hard2guessPassword

That single line of text goes into the .htpasswd file and that file is immediately uploaded to the server. If there should be more than one user and password combination that can grant access to the file or directory, they can be listed on separate lines with the .htpasswd document.


To create the authentication screen that requires one of the valid username and password combinations to be entered, site administrators need to add the following series of lines to their .htaccess file, requiring the password document and assigning it to a given directory or file:


AuthUserFile /server/path/of/.htpasswd
AuthType Basic
AuthName "The Title of the Protected Page Goes Here"

<Files "login.php">
Require ValidUser
</Files>

The code above is also pretty easy, as are all implementations of .htaccess permissions and error messages. All that needs to be done is to point to the relevant .htpasswd file, specify the file or director being protected, and then give the page a title. That title will appear within the login form that is automatically generated by the browser when it encounters this restriction.


3. Printing a 404 Error for Missing Pages or Directories


Websites, like the technology that hosts them, are constantly evolving. Sometimes, that means entire sites or directories eventually go missing as they are no longer required or their content is simply deemed outdated and not worthy of remaining in the public eye. No matter the reasoning for this change in the site’s structure, it should be accommodated by the .htaccess file with a custom error page and message. This will let users know that they’ve reached an outdated file, and it will prompt them to stop going there in the future. For search engine robots, this page will tell them to stop indexing the missing page or directory and spend their efforts on parts of the site that still remain available for use.


To specify a customized 404 Error document to be seen by end users and search engine robots when they stumble across an outdated link, simply place the following line into the .htaccess document:


ErrorDocument 404 /path/to/the/404-error-page.htm

Simply customize the local server path to the 404 Error page’s location and then save the .htaccess file to the server. That’s all that will be required; next time an invalid link is pursued by an end user, an intuitive and informative error page will result.


An Important Part of Website Design and Operation


The .htaccess file is an essential part of creating friendly URLs, optimizing a website’s search engine performance and position, and notifying users or search engines of outdated links. It should be leveraged to best position a website for better rankings, search results, and revenues, and this is what makes learning about the file so essential for novice website operators. With a little knowledge and a bit of trial and error, the file can be the difference between a website that performs well and one that tends to underperform consistently.

Copyright By Awesoome.com , All Rights Reserved. Blogger tarafından desteklenmektedir.