{"id":30063,"date":"2021-01-18T03:02:37","date_gmt":"2021-01-17T19:02:37","guid":{"rendered":"https:\/\/web.mwwsb.com.my\/pjci\/?post_type=kb&#038;p=30063"},"modified":"2022-09-08T21:40:32","modified_gmt":"2022-09-08T13:40:32","slug":"how-to-create-a-user-friendly-url","status":"publish","type":"kb","link":"https:\/\/www.casbay.com\/guide\/kb\/how-to-create-a-user-friendly-url","title":{"rendered":"HOW TO: create a user-friendly URL"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"30063\" class=\"elementor elementor-30063\" data-elementor-post-type=\"kb\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2200a53 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2200a53\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-88c419a\" data-id=\"88c419a\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2a9a15b elementor-widget elementor-widget-heading\" data-id=\"2a9a15b\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">HOW TO: create a user-friendly URL<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-977a1db elementor-widget elementor-widget-text-editor\" data-id=\"977a1db\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>An optimized URLs are important for both <a href=\"https:\/\/moz.com\/beginners-guide-to-seo\" rel=\"noopener\">search engine optimization (SEO)<\/a> and your user experience. Search engines like Google will inspect many factors to make decision which URLs should be high on the list. URLs is important to describe a web page to search engines and potential visitors. Therefore, they should be accurate, enticing, and memorable. Here we suggest the six <strong>best practices to create user-friendly URLs<\/strong>.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-be04420 elementor-widget elementor-widget-heading\" data-id=\"be04420\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Six Practices for Good URLs<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ff7698b elementor-widget elementor-widget-text-editor\" data-id=\"ff7698b\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<ol><li><strong>Describe What You Do<\/strong> &#8211; A good URL should include a phrase or term that is linked to the page content.<\/li><li><strong>Insert some Keywords<\/strong> &#8211; You can put the <strong>most important keywords<\/strong> in the <strong>beginning<\/strong> of the URL so the search engine spiders can easily track them. Note that <strong>do not overuse<\/strong> the keywords as keyword stuffing will cause your site being penalized by search engine.<\/li><li><strong>Use Hyphens, Not Underscores<\/strong> &#8211; <strong>Hyphens (-) are recommended by Google<\/strong> as hyphens are treated as spaces to separate words while the words connected by underscores (_) are counted as one word.<\/li><li><strong>Keep it SHORT!<\/strong> &#8211; A short URL is more <strong>memorable, recognizable and also easier to type and read<\/strong>. A URL that has many similar word might be viewed as keyword stuffing.<\/li><li><strong>Use Static URLs<\/strong> &#8211; Try to <strong>avoid using unnecessary parameters<\/strong> like &#8220;?&#8221;, &#8220;=&#8221;, and &#8220;&amp;&#8221;. A static URL is easier for users and search engines to read than a dynamic URL.<\/li><li><strong>Optimize The Subdomains<\/strong> &#8211; It is better to use subfolders instead of subdomains unless you have a specific reason. This is because search engines might <strong>have the potential to treat subdomain as a separate entity from the main domain<\/strong>.<\/li><\/ol>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6c70f61 elementor-widget elementor-widget-text-editor\" data-id=\"6c70f61\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>For your information, you can also create a user-friendly URL using .htaccess. If your website is using long URL like\u00a0<strong>example.com\/files\/folder\/sitemap.html<\/strong>, you can change it into user-friendly URL \u201c<strong>example.com\/sitemap<\/strong>\u201d in .htaccess<\/p><p>You can modify this line according to your needs and add this code to your .htaccess file.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f1a5ef8 elementor-widget elementor-widget-text-editor\" data-id=\"f1a5ef8\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>We hope this article helped you to learn about how to create a user-friendly URL. For more articles, kindly visit our <a href=\"https:\/\/www.casbay.com.my\/guide\/\">Knowledge Base<\/a>.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>HOW TO: create a user-friendly URL An optimized URLs are important for both search engine optimization (SEO) and your user experience. Search engines like Google will inspect many factors to make decision which URLs should be high on the list. URLs is important to describe a web page to search engines and potential visitors. Therefore, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"no-sidebar","site-content-layout":"page-builder","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"default","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}}},"kbtopic":[117],"kbtag":[106],"mkb_version":[],"_links":{"self":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb\/30063"}],"collection":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/comments?post=30063"}],"version-history":[{"count":4,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb\/30063\/revisions"}],"predecessor-version":[{"id":37077,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb\/30063\/revisions\/37077"}],"wp:attachment":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/media?parent=30063"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=30063"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kbtag?post=30063"},{"taxonomy":"mkb_version","embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/mkb_version?post=30063"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}