On Page SEO Errors and solutions

Here some of the issues of on-page SEO is mentioned. While checking one of my client’s websites on screaming-frog, I found plenty of Seo errors on the site. Now I have to resolve this problem so that the website may rank on Google. So I am going make the pointers below so that you guys also check it. Before starting my article, I have to say that this article contains only errors/issues and their solutions. Here we go.

H1 and H2 Tag

While checking the website on a screaming frog, sometimes you found so many H1 and H2 errors. This means the site has no or less H1 and H2 tags. So what to do now? Here you have to do is to identify the essential topics from your page and insert those topics between <h1>…</h1> tags.

Example:

<h1>Important topic goes here</h1>

<h1>Another topic</h1>

Not More than H2 Tags in a page.

Sitemap

Most of the websites have no sitemap. To pass this test, you must create a sitemap.xml file for your website. Some of the best practices are listed below:

  • It strongly recommended that you place your sitemap at the root directory of your website: http://yourwebsite.com/sitemap.xml But in some situations, you may want to produce different sitemaps for different paths on your site (e.g., security permission issues)
  • Sitemaps should be no larger than 10MB (10,485,760 bytes) and can contain a maximum of 50,000 URLs. Means that if your site contains more than 50,000 URLs or your sitemap is more significant than 10MB, you must create multiple sitemap files and use a Sitemap index file
  • All URLs listed in the sitemap must reside on the same host as the sitemap. For instance, if the sitemap located at http://www.yourwebsite.com/sitemap.xml, it can’t include URLs from http://subdomain.yourwebsite.com
  • Once you have created your sitemap, let search engines know about it by submitting directly to them, pinging them, or adding the sitemap location to your robots.txt file.
  • Sitemaps can compress by using gzip, reducing bandwidth consumption

Google ranks the pages of the website, not a site. A sitemap helps the sheets to index on SERP.

sitemap.xml example:

<?xml version=”1.0″ encoding=”UTF-8″?>

<urlset xmlns=”http://www.sitemaps.org/schemas/sitemap/0.9″>

<url>

<loc>http://www.yourwebsite.com</loc>

<lastmod>2013-01-01</lastmod>

<changefreq>weekly</changefreq>

<priority>0.9</priority>

</url>

<url>

<loc>http://www.yourwebsite.com/articles/100</loc>

<changefreq>weekly</changefreq>

</url>

<url>

<loc>http://www.yourwebsite.com/articles/101</loc>

<lastmod>2013-01-02</lastmod>

<changefreq>weekly</changefreq>

</url>

<url>

<loc>http://www.yourwebsite.com/articles/102</loc>

<lastmod>2013-01-02T13:00:12+00:00</lastmod>

<priority>0.5</priority>

</url>

</urlset>

Image Alt Attributes

To pass this test, you must add an alt attribute to every <img> tag used on your webpage.

An image with an alternate text specified inserted by using the following HTML line:

<img src=”image.png” alt=”text_to_describe_your_image”>

Remember that the point of alt text is to provide the same functional information that a visual user would see. Search engines, users who disabled images in their browsers, and other agents who are unable to see the images on your webpage can read the alt attributes assigned to the image since they cannot view it.

Inline CSS

It is a good practice to move all the inline CSS rules into an external file to make your page “lighter” in weight and decrease the code to text ratio.

  • check the HTML code of your page and identify all style attributes
  • for each style attribute found you must properly move all declarations in the external CSS file and remove the style attribute

Increase your site speed and loading time.

HTML Compression/GZIP Test

How to fix – HTML Compression/GZIP Test

Your two options for file compression are Deflate and GZIP.

  • Deflate is an option that comes automatically with the Apache server and which is simple to set up.
  • GZIP, on the other hand, needs to be installed and requires a bit more work to fix. However, GZIP does achieve a higher compression rate and, therefore, might be a better choice if your website uses pages that have a lot of images or large file sizes.

Setting up file compression for your website will depend on which type of server you’re using for your website. Most likely, you’ll be using Apache, which means you can enable compression by adding a few deflate codes to your .htaccess file.

Site Loading Speed Test

To resolve this problem, you advised to:

  • Minimize HTTP requests
  • Use Gzip compression
  • Use HTTP caching
  • Move all CSS style rules into a single, external and minified CSS file
  • Minify all JS files and, if possible, try combining them into a single external JS file
  • Include external CSS files before external JS files
  • Place your JS scripts at the bottom of your page
  • Optimize images
  • Reduce redirects
  • Reduce the number of plug-ins

Page Objects Test

To pass this test, you can try reducing http requests through various methods such as using text instead of images, using CSS sprites, using data URIs instead of images, or combining several external files into one.

CDN Usage Test

To pass this test, you advised using a CDN service. A Content Delivery Network (CDN) is a globally distributed network of web servers that allows a quick transfer of assets and provides high availability and high performance. The primary benefits of using a CDN service are:

  • Improving website loading times
  • Reducing bandwidth costs
  • Increasing content availability and redundancy
  • Improving website security

Image Caching Test

To reduce the number of HTTP requests, you can use the HTTP Expires header to set an expiration time for your images or any other content type. You can add the following lines into your .htaccess file:

JavaScript Caching

To reduce the number of HTTP requests, you can use the HTTP Expires header to set an expiration time for your JavaScript resources or any other content type. You can add the following lines into your .htaccess file:

JavaScript Minification

To pass this test, you must minify all of your external JavaScript files. For this task, you can use an online JS minifier like JSCompress, Closure Compiler, or JSMin.

URL Canonicalization Test

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.

Server Signature Test

By default, the Apache webserver sends HTTP headers with some information about your server version, operating system, modules installed, etc. This information can be used by hackers to exploit vulnerabilities (especially if you are running an older version). This information can be hidden or changed with fundamental configurations.

Open Apache’s configuration file (httpd.conf or apache.conf) and search for ServerSignature. If you find it, edit it to:

ServerSignature Off

ServerTokens Prod

If you don’t find it, add these two lines at the end of the file.

Note that, after you modify the configuration file, you must restart the Apache server.

Structured Data Test

HTML5 Microdata is an easy way to add semantic markup to your web pages. Search engines rely on this markup to improve the display of search results, making it easier for people to find the right web pages.

Here is a simple example of how to use HTML5 microdata in your contact web page:

<div itemscope itemtype=”http://schema.org/Person”>

<span itemprop=”name”>Joe Doe</span>

<span itemprop=”company”>The Example Company</span>

<span itemprop=”tel”>604-555-1234</span>

<a itemprop=”email” href=”mailto:joe.doe@example.com”>joe.doe@example.com</a>

</div>

Custom 404 Error Page Test

Creating a custom 404 error page can be relatively simple or more complicated, depending on what technologies used to build your website (your web server, the framework used, etc.). Learn more about the basics of creating a custom 404 error page.

On your custom error page, you should provide relevant information to keep the user’s attention, so they remain on your website. Some steps to achieve this goal include:

  • Adding links to your most important pages (your best articles/content, latest posts, etc.)
  • If you have an e-commerce business, you can display special offers, product recommendations, discounts, etc.
  • Include a search box or a sitemap link to help users find the information they wanted.
  • Use simple language (non-technical) to explain what went wrong.
  • Add a contact form or provide an email address to allow users to get in touch with you for further help.

You can also use your custom 404 error page to track the source of broken links on your site.

SHASHANKSHARMA

Leave a Reply

Your email address will not be published. Required fields are marked *

Next Post

Google BERT Update

Fri Dec 13 , 2019
Before understanding the term BERT, Let us know the full […]
Google BERT Update