{"id":1244,"date":"2021-08-06T13:03:21","date_gmt":"2021-08-06T13:03:21","guid":{"rendered":"https:\/\/ownwebservers.com\/kb\/?p=1244"},"modified":"2021-08-06T13:03:33","modified_gmt":"2021-08-06T13:03:33","slug":"how-to-remove-extensions-from-url","status":"publish","type":"post","link":"https:\/\/ownwebservers.com\/kb\/how-to-remove-extensions-from-url\/","title":{"rendered":"How to Remove extensions from URL"},"content":{"rendered":"<p>URL stands for Uniform Resource locater that is the global address of documents and other resources on the World Wide Web. According to the syntax of URL the primary part of the URL is named a protocol identifier and it indicates what protocol to use, and therefore the second part known as a resource name which state the IP address or the domain name where the resource is located. The resource name and the protocol identifier are separated by a colon and two forward slashes.<\/p>\n<h2>1) How to remove the.php extension from the URL?<\/h2>\n<p>Ans : You have to add the following code in .htaccess file<br \/>\n<strong>Options +FollowSymLinks<\/strong><br \/>\n<strong>Options +Indexes<\/strong><br \/>\n<strong>RewriteEngine on<\/strong><br \/>\n<strong>RewriteCond %{SCRIPT_FILENAME} !-d<\/strong><br \/>\n<strong>RewriteRule ^([^.]+)$ $1.php [NC,L]<\/strong><\/p>\n<h2>2) How to remove the.html extension from the URL ?<\/h2>\n<p>Ans : Just by adding the following code in .htaccess file<br \/>\n<strong>Options +FollowSymLinks<\/strong><br \/>\n<strong>Options +Indexes<\/strong><br \/>\n<strong>RewriteEngine on<\/strong><br \/>\n<strong>RewriteCond %{SCRIPT_FILENAME} !-d<\/strong><br \/>\n<strong>RewriteRule ^([^.]+)$ $1.html [NC,L]<\/strong><br \/>\n<strong>To host any extension based site you will required a good quality <a href=\"https:\/\/ownwebservers.com\/\" target=\"_blank\" rel=\"noopener\">web hosting\u00a0<\/a>services to run secure site.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>URL stands for Uniform Resource locater that is the global address of documents and other resources on the World Wide Web. According to the syntax of URL the primary part of the URL is named a protocol identifier and it indicates what protocol to use, and therefore the second part known as a resource name [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-1244","post","type-post","status-publish","format-standard","hentry","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v15.2.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Remove extensions from URL - OWS KB<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ownwebservers.com\/kb\/how-to-remove-extensions-from-url\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Remove extensions from URL - OWS KB\" \/>\n<meta property=\"og:description\" content=\"URL stands for Uniform Resource locater that is the global address of documents and other resources on the World Wide Web. According to the syntax of URL the primary part of the URL is named a protocol identifier and it indicates what protocol to use, and therefore the second part known as a resource name [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ownwebservers.com\/kb\/how-to-remove-extensions-from-url\/\" \/>\n<meta property=\"og:site_name\" content=\"OWS KB\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-06T13:03:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-06T13:03:33+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\">\n\t<meta name=\"twitter:data1\" content=\"admin\">\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data2\" content=\"1 minute\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"OWS KB\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/ownwebservers.com\/kb\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-remove-extensions-from-url\/#webpage\",\"url\":\"https:\/\/ownwebservers.com\/kb\/how-to-remove-extensions-from-url\/\",\"name\":\"How to Remove extensions from URL - OWS KB\",\"isPartOf\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\"},\"datePublished\":\"2021-08-06T13:03:21+00:00\",\"dateModified\":\"2021-08-06T13:03:33+00:00\",\"author\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\"},\"breadcrumb\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-remove-extensions-from-url\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ownwebservers.com\/kb\/how-to-remove-extensions-from-url\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-remove-extensions-from-url\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-remove-extensions-from-url\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/how-to-remove-extensions-from-url\/\",\"name\":\"How to Remove extensions from URL\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ba5db5841d48bd7517bb2583e13983e6d2fa56a4099a0b3c61ad2daefc321303?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/ownwebservers.com\/kb\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","_links":{"self":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/1244","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/comments?post=1244"}],"version-history":[{"count":1,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/1244\/revisions"}],"predecessor-version":[{"id":1245,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/1244\/revisions\/1245"}],"wp:attachment":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/media?parent=1244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/categories?post=1244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/tags?post=1244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}