{"id":186,"date":"2016-09-19T10:39:29","date_gmt":"2016-09-19T10:39:29","guid":{"rendered":"https:\/\/hostduplex.com\/kb\/?p=186"},"modified":"2016-09-19T10:39:29","modified_gmt":"2016-09-19T10:39:29","slug":"how-to-create-a-user-friendly-url-using-htaccess","status":"publish","type":"post","link":"https:\/\/www.hostduplex.com\/kb\/how-to-create-a-user-friendly-url-using-htaccess\/","title":{"rendered":"How to create a user-friendly URL using .htaccess?"},"content":{"rendered":"<p><span style=\"font-size: medium;\">If your website is using long URL like <strong>example.com\/files\/folder\/sitemap.html<\/strong>, you can change it into &#8220;<strong>example.com\/sitemap<\/strong>&#8221; in .htaccess<\/span><\/p>\n<p><span style=\"font-size: medium;\">Modify this line according to your needs and then add this code to your .htaccess file.<\/span><\/p>\n<p><span style=\"font-size: medium; background-color: #c0c0c0;\">RewriteEngine on<\/span><br \/>\n<span style=\"font-size: medium; background-color: #c0c0c0;\">RewriteRule ^sitemap\/$ \/files\/folder\/sitemap.html [L]<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If your website is using long URL like example.com\/files\/folder\/sitemap.html, you can change it into &#8220;example.com\/sitemap&#8221; in .htaccess Modify this line according to your needs and then add this code to your .htaccess file. RewriteEngine on RewriteRule ^sitemap\/$ \/files\/folder\/sitemap.html [L]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[78],"tags":[],"class_list":["post-186","post","type-post","status-publish","format-standard","hentry","category-others-cpanel"],"_links":{"self":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/posts\/186","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/comments?post=186"}],"version-history":[{"count":0,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/posts\/186\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/media?parent=186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/categories?post=186"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/tags?post=186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}