seo

How to fix hreflang conflict issues?

How to fix hreflang conflict issues?

What is hreflang?

hreflang is a tag attribute tells google search engine which language you are using on a specific page and serve results based on the searcher’s country and language preferences.

Code Sample :

Code Sample :

<link rel=”alternate” href=”http://example.com” hreflang=”fr” />
<link rel=”alternate” href=”http://example.com/fr/” hreflang=”Nl” />

 

Where the Hreflang Attribute Goes?

  1. using link elements in the – HTML hreflang link elements in your <head>
  2. using HTTP headers – The second method of implementing hreflang is through HTTP headers. HTTP headers are for all your PDFs and other non-HTML content you might want to optimize.
  3. or using an XML sitemap -The third option to implement hreflang is using XML sitemap markup. It uses the xhtml:link attribute in XML sitemaps to add the annotation to every URL.

 

Very common issue, we unaware about it:

– If we are not following trailing slash it will create hreflang conflict error when you analysis your website SEO.

Ex: https://example.com/about and

https://example.com/about/

Both URL’s are looking the same but we missed trailing slash on first one. So we should use trailing slash in all url to avoid hreflang conflict issue.

 

Ex: https://example.com/about/ and

https://www.example.com/about/

Both links are looking the same, but we missed www. on first one. So we should add www in all url to avoid hreflang conflict issue.

 

Above two hreflang conflict issues fixed by using .htaccess file as like as follows

    # Basic WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    
    # Force https 
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    #Force www
    RewriteCond %{HTTP_HOST} !^www.quadrus.be$ [NC]
    RewriteRule ^(.*)$ https://www.quadrus.be/$1 [L,R=301]
Medcure – Health and Medical Care WordPress Theme

Medcure – Health and Medical Care WordPress Theme

MedcureHealth and Medical Care WordPress Theme is a fully responsive WordPress theme that is professionally designed and developed for the websites of medical practices, dentists, doctors, surgeons, hospitals, health clinics, pediatrics, psychiatrist, psychiatry, stomatology, chiropractor, veterinary clinics and other related medical related practices. No coding or advanced programming knowledge is required, with only one click you will be able to import the demo content and initiate the installation.

Medcure – Health and Medical Care WordPress Theme is a powerful premium plugins are included with Medcure, so you always have the right tool for the right job, including the Visual Composer premium page builder, the Revolution Slider to craft gorgeous, engaging experiences for your users and the WooCommerce e-Commerce plugin suite. It provides a simple roadmap to create a great-looking website, Fully responsive to give your customers a chance to reach you via their mobile devices and many other handy functions and options to create a strong virtual presence for your logistic business!

Highlights Meducre – Health and Medical Care WordPress Theme:

  • Built on WPBakery Page Builder
  • WordPress 5.2.x supported
  • Built with Bootstrap 4.x
  • Included Megamenu
  • Perfect clean code for your convenience
  • Cross-browser compatibility: Chrome, FireFox, Safari, Opera, IE10+
  • Totally responsive design with choose option
  • Unlimited Header Layouts choose on each page
  • Font Awesome Icon, Line Icon& Flat Icon Integration
  • Parallax Image/Video Slider
  • Easy one-click demo import to get the main theme files, layouts, sliders and widgets
  • Import of individual pre-built layouts available
  • Coming soon page, Under construction page for websites
  • Unlimited Color Scheme
  • One page and Multi page Layout
  • Sticky Headers
  • Boxed or Wide Layout
  • Unlimited Header Layouts
  • Extremely Customizable

The theme is highly responsive and compatible with all devices. It is really a light-weight theme and loads very quickly. This theme optimized for SEO and there is a chance to grab more visitors from search engines to your respective website. It is built with bootstrap and has a cross browser compatibility. It custom widgets and unlimited header layouts on each page

Just click the below link to know more about the features of this theme