create custom seo friendly url in vuejs Example

Today, We want to share with you create custom seo friendly url in vuejs.In this post we will show you Create your Vue.js application SEO friendly, hear for VueJS – How to create SEO friendly sluggable URL we will give you demo and example for implement.In this post, we will learn about How to build a pre-rendered, SEO-friendly Vue.js app with an example.

create custom seo friendly url in vuejs

There are the Following The simple About create custom seo friendly url in vuejs Full Information With Example and source code.

As I will cover this Post with live Working example to develop php – Vue js seo friendly Slug Example, so the Search Engine Optimized with Vue.js Application for this example is following below.

Heady Stuff in Vuejs

import Vue from 'vue';
...
import Meta from 'vue-meta';

Vue.use(Meta);
...

Vuejs Meta tags Example

<template>
  ...
</template>

<script>
export default {
  ...
  metaInfo: {
    title: 'Welcome To Pakainfo.com',
    // Result: Welcome To Pakainfo.com ← Pakainfo.com
    // it will become: My Other Page Title ← Pakainfo.com
    titleTemplate: '%s ← Pakainfo.com',
    // Define meta tags here.
    meta: [
      {http-equiv: 'Content-Type', content: 'text/html; charset=utf-8'},
      {name: 'viewport'. content: 'width=device-width, initial-scale=1'},
      {name: 'description', content: 'Our mission is to provide the best online resources on programming and web development.'}
    ]
  }
}
</script>

Social tags in Vuejs Application

metaInfo: {
  ...
  meta: [
    ...

    {property: 'og:title', content: 'My Page Title ← Pakainfo.com'},
    {property: 'og:site_name', content: 'Pakainfo.com'},
    // The list of types is available here: http://ogp.me/#types
    {property: 'og:type', content: 'website'},
    {property: 'og:url', content: 'https://www.pakainfo.com/my-special-page'},
    {property: 'og:image', content: 'https://www.pakainfo.com/my-special-image.jpg'},
    {property: 'og:description', content: 'pakainfo is the most popular Programming & Web Development blog.'}

    // Twitter card
    {name: 'twitter:card', content: 'pakainfo is the most popular Programming & Web Development blog'},
    {name: 'twitter:site', content: 'https://www.pakainfo.com/my-special-page'},
    {name: 'twitter:title', content: 'My Page Title ← Pakainfo.com'},
    {name: 'twitter:description', content: 'pakainfo is the most popular Programming & Web Development blog.'},
    {name: 'twitter:creator', content: '@pakainfo'}
    {name: 'twitter:image:src', content: 'https://pakainfo.com/wp-content/uploads/2018/01/cropped-pakainfo-logo.png'},

    // Google / Schema.org markup:
    {itemprop: 'name', content: 'My Page Title ← Pakainfo.com'},
    {itemprop: 'description': 'Our mission is to provide the best online resources on programming and web development.'},
    {itemprop: 'image', content: 'https://pakainfo.com/wp-content/uploads/2018/01/cropped-pakainfo-logo.png'}
  ]
}

Canonical link in Vuejs

metaInfo: {
  ...
  links: [
    {rel: 'canonical', href: 'https://pakainfo.com/vuejs-double-click-to-inline-editing-vue-grid-component/	'}
  ]
}

Vuejs Sitemaps

Vuejs An example of the sitemap

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
  <url>
    <loc>https://www.pakainfo.com</loc>
  </url>
  <url>
    <loc>https://pakainfo.com/vuejs-crud-insert-update-delete-operations-example-demo/</loc>
  </url>
  <url>
    <loc>https://pakainfo.com/vuejs-crud-operations-with-php-and-mysqli-example/</loc>
  </url>
  <url>
    <loc>https://pakainfo.com/inline-table-editing-row-using-vuejs/</loc>
  </url>
</urlset>

Last things, We can include the SEO Search sitemap in main file robots.txt by adding a line simple such as:

Also Read :  Vuejs Double Click to inline editing vue Grid Component

Include Sitemap in Vuejs website

Sitemap: https://www.live-website-name.com/sitemap.xml

Angular 6 CRUD Operations Application Tutorials

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about create custom seo friendly url in vuejs.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Recommended For You.

Dropzone Multiple File Upload using PHP Example
Today, We want to share with you Dropzone Multiple File Upload using PHP Example.In this post we will show you

Add a Comment

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