How to optimize my website for search engines (SEO)?

So that your website takes up a good places in Google’s search engines, it is not enough that you put text related to your products or that you have the perfect domain.

You need to optimize your website before indexing it in Google or any other search engine, so that your website isn’t penalized, deliver an excellent user experience and your website will place itself correctly.

 

Use of SSL certificate:

The SSL certificates are used to protect confidential information sent via the internet.

This information is encrypted in a way that only the receiver can see it.

The use of an SSL certificate is very important for the positioning within Google and other search engines, as it tells the end user that your website is safe, and the search engines prefer a safe website over an unsafe one.

To buy your SSL certificate with ClickPanda, visit https://www.clickpanda.com/ssl/

Add a title tag (Meta Title):

The title of the website is very important in Google search, since it defines the main theme of the visited page, besides indicating to the user in which page it finds.

This is how the title of a website in the browser appears:

And this is how the title of the website appears in Google:

The size of the title of your website is also important, since the majority of searchers will cut the title to 70 characters.

The Keywords it the title are vital so that your website can be found, therefore it is recommended to include the name of the company and the main product in the title.

The label format of the title in HTML is:

<head>

<title>Example Title</title>

</head>

 

Add a description label (Description metatag)

The description label defines the theme or product of your website.

This is how the description label is shown in a search engine:

The majority of search engines cut the description to 160 characters.

It is important to include words or phrases that define your website, and are easy to read for users.

The description label in HTML has the following syntax:

<meta name=”description” content= Trial description, this is the product that you are looking for">

Word density (Keywords)

It is important that the words or phrases that define your website have a fluid wording and they must be easy to read. It is recommended that paragraphs are inside the HTML label <p></p>

Use of labels <h1> and <h2>

The H1 labels must strengthen the theme of your page to Google search- most labels can make the theme unclear, or be interpreted as Spam attempts. Try to use less than 5 H1 labels.

The H2 labels are subthemes of the main themes, many H2 labels can confuse search engines. Try to use less that 10 H2 labels.

Robots.txt file

The robot exclusion standard, also known as the robots exclusion protocol or robots.txt protocol is a method to prevent bots that scan Web sites or other bots that investigate all or part of a public or private Web site's access from adding unnecessary information to search results. Robots are often used by search engines to categorize files from websites, or by webmasters to correct or filter the source code.

In the robots file you must exclude your company’s the internal links, or areas of your page that not all your users should see.

This is an example of syntax for the robots.txt file:

User-agent: *

Disallow: /cgi-bin/

Disallow: /tmp/

Disallow: /admin/

It is very important to protect the robots file from the public, ya que estás seguro de que estas son importantes páginas de tu sitio web. Usando el archivo .htaccess, puedes bloquear el acceso al público salvo un Googlebot, usando el siguiente código:

ADD IMAGES

The sitemap.xml file

Sitemaps are an easy way for webmasters to inform search engines of pages that can be crawled on their websites. A sitemap, in its simplest form, in an XML file that lists the URLs of a site together with additional metadata about each of them: the last update, frequency of modification, importance, relative to the other URLs of the site; Well, search engines can carry out site crawls in a smarter way.

Web crawlers often find sitelink pages and other sites. Sitemaps offer this data so that compatible trackers are selected for all sitemap URLs and get information from them through the associated metadata. Using the Sitemaps protocol does not guarantee that web pages are included in search engines, but it does offer suggestions to improve the work of web crawlers when crawling your site.

This is an example of a sitemap:

<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">

<!-- www.check-domains.com sitemap generator -->

<url>

<loc>https://www.clickpanda.com/</loc>

</url>

<url>

<loc>https://www.clickpanda.com/hosting/</loc>

</url>

<url>

<loc>https://www.clickpanda.com/email/</loc>

</url>

<url>

<loc>https://www.clickpanda.com/domains/</loc>

</url>

<url>

<loc>https://www.clickpanda.com/dominios/</loc>

</url>

<url>

<loc>https://www.clickpanda.com/ssl/</loc>

</url>

</urlset>


Broken links:

When Google tracks your website, each existing link within the content of your website sends itself to the index, but you must ensure that all links resolve correctly.

If there is a link that leads to a non-existent page, or that generates some error, errors in the indexation may appear.

It is recommended no to use redirrections, since this affects the posicioning, in case the use of redirects is mandatory, it is preferable that they redirect with the response code 301.

SEO-friendly URLs

Check that the URLs of your website are search engine friendly, for this, they need to contain words relevant to the content of the page, and not contain spaces, hyphens or other characters. You must avoid the use of URLs with parameters when possible, since these are not so reliable to be shared or clicked. The suggestion by Google to separate words in a sentence is to use hyphens, as these are treated as separators, unlike the hyphens.

The use of ‘alt’ in images

The images on your website must have a description, this defines the word with which they appear in the images index and improves the web positioning.

To add ‘alt’ to an image you must use the following syntax:

<img src="foto.gif" alt="descripcion de la foto">

CSS online styles

On occasions, web developers define the styles of some elements within the same element tag, this can generate a better loading time of the website, which negatively affects the web positioning.

It is advisable to define the CSS styles in external files, or inside the <style> tag, for example:

To include an external CSS file, you must use the following syntax:

<link rel="stylesheet" href="/carpeta/archivo.css">

Use of Favicon

Favicon is the icon that is shown in the browser next to the title, it is very important to differentiate your website when the user has various open websites.

Here is the favicon in the browsers window:

Javascript errors

When you execute javascript code on your website, either inside the same file or in external files, you must make sure that there is no error in the execution, as this can increase the loading time of your website, negatively affecting your positioning.

 

To verify the errors, you can use the browser's developer tools, for example in Google chrome, you can press the F12 key while loading your website and select "Console", this will show the general errors, so it looks like a bug javascript within the developer tools:

Links to you social media

It is very important that there are links on your website to the active social media accounts, this improves the page’s reputation.

The size of the HTML code

The ideal average is 33kb, this does not include images, javascript files or external CSS.

 

Having a very heavy HTML code considerably increases the loading time of your website, affecting the user experience.

 

To enable the compression of your website, you can use the DEFLATE method in the .htacess file.

 

The htaccess files always have the name ".htaccess". On Linux files whose name begins with "." they are hidden. The htaccess is a file that is hidden inside Linux, but not in Windows. In .htaccess we place any configuration for the Apache server, not only the configurations to compress the files, also to make redirects, block access to files, etc. etc.

 

There is a command that is inserted into the htaccess code used to define the GZIP / DEFLATE compression. The command is called AddOutputFilterByType and we have to tell you the type of compression and the type of medium we want to compress.

For example, with this line of code we would compress all plain text files:

AddOutputFilterByType DEFLATE text/plain

If we wish, we can compress all HTML files with this line of code in the htaccess.

AddOutputFilterByType DEFLATE text/html

Below we can see a series of lines with different types of media that are being indicated to compress:

AddOutputFilterByType DEFLATE text/xml

AddOutputFilterByType DEFLATE text/css

AddOutputFilterByType DEFLATE application/javascript

AddOutputFilterByType DEFLATE application/x-javascript

AddOutputFilterByType DEFLATE application/xml

AddOutputFilterByType DEFLATE application/xhtml+xml

AddOutputFilterByType DEFLATE application/rss+xml

Objects on the page

It is very important to reduce the call of objects through HTTP, as this increases the loading time of your website.

 

An object called through an absolute URL executes a connection to the server, so it is advisable to use relative URLs within the same server, following an example of the use of absolute URL vs relative URI:

 

Absolute URL Usage:

<img alt="clickpanda"  id="logo" src="https://www.clickpanda.com/logo-horizontal-s-w.png"/>

Relative URL Usage:

<img alt="clickpanda"  id="logo" src="/logo-horizontal-s-w.png"/>

You can also replace the use of images for URI Data, which is a version of base64 text of the image, reducing the time loading website, some examples below:

CSS:

li{background:url(data:image/gif;base64,R0lGODlhEAAQAMQAAORHHOVSKudfOulrSOp3WOyDZu6QdvCchPGolfO0o/XBs/fNwfjZ0frl3/zy7////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAkAABAALAAAAAAQABAAAAVVICSOZGlCQAosJ6mu7fiyZeKqNKToQGDsM8hBADgUXoGAiqhSvp5QAnQKGIgUhwFUYLCVDFCrKUE1lBavAViFIDlTImbKC5Gm2hB0SlBCBMQiB0UjIQA7)no-repeat left center;padding:5px 05px 25px;}

HTML:

<img width="16" height="16" alt="star" src="data:image/gif;base64,R0lGODlhEAAQAMQAAORHHOVSKudfOulrSOp3WOyDZu6QdvCchPGolfO0o/XBs/fNwfjZ0frl3/zy7////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAkAABAALAAAAAAQABAAAAVVICSOZGlCQAosJ6mu7fiyZeKqNKToQGDsM8hBADgUXoGAiqhSvp5QAnQKGIgUhwFUYLCVDFCrKUE1lBavAViFIDlTImbKC5Gm2hB0SlBCBMQiB0UjIQA7" />

PHP:

<?php echo base64_encode(file_get_contents("../images/folder16.gif"))?>

 

To reduce the use of HTTP applications, you can use the HTTP expiry header to set up an expiry date for your images or content of any other type. You can add the following lines to your file .htaccess

 

<IfModule mod_expires.c>

ExpiresActive on

ExpiresByType image/jpg "access plus 1 month"

ExpiresByType image/jpeg "access plus 1 month"

ExpiresByType image/gif "access plus 1 month"

ExpiresByType image/png "access plus 1 month" </IfModule>

Avoid redirections

 

Make sure that your main website does not redirect anywhere, and that the response to the server is 200, as this is vital for web positioning.

 

Make a mobile version

 It is very important that your website is displayed correctly on all devices, and is optimized to consume little data on mobile phones, otherwise your positioning may be affected.

 

Submit your website to Google Index

 For more information, visit our support article Does not my website appear in Google search: My website does not appear in Google search?  

 

In case you have any questions or concerns you can contact our live chat via whatsapp : https://wa.me/+573107216459

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

My website does not show in Google Search?

Your website may not show up in Google search results if it's too new, your pages are hidden, or...

SEO vocabulary

AdSense Advertising system where the owner of a web page can sell an advertising space and...