{"id":1319,"date":"2021-08-16T07:39:43","date_gmt":"2021-08-16T07:39:43","guid":{"rendered":"https:\/\/ownwebservers.com\/kb\/?p=1319"},"modified":"2021-08-16T08:15:05","modified_gmt":"2021-08-16T08:15:05","slug":"how-to-enable-mod_rewrite-module","status":"publish","type":"post","link":"https:\/\/ownwebservers.com\/kb\/how-to-enable-mod_rewrite-module\/","title":{"rendered":"How To Enable Mod_rewrite Module ?"},"content":{"rendered":"<p>Based on a regular-expression of a parser the mod-Rewrite module uses a rule-based rewriting engine that is used to rewrite the requested URLs at server level. A rewrite engine may be a software that modifies an web URL\u2019s look (URL rewriting). Rewritten URLs (sometimes called short, fancy URLs, or search engine friendly \u2013 SEF) are used to provide shorter and a lot of relevant looking links to websites. it&#8217;s additionally designed to support unlimited number of protocols (rules) and an unlimited number of attached rule conditions for every rule, to supply a really flexible and powerful URL manipulation mechanism. So as to enable Mod_Rewrite for your website you must create a text file known as .htacccess in root directory wherever you want the rewrite rules to apply.<\/p>\n<p>Lets see a way to alter Mod-Rewrite Module and therefore the 1st line of this text file should be:<\/p>\n<p>RewriteEngine On<\/p>\n<p>After that you can place your rewrite rules. Here are some examples for Joomla\u2019s SEF option:<\/p>\n<p>RewriteCond %{REQUEST_FILENAME} !-f<br \/>\nRewriteCond %{REQUEST_FILENAME} !-d<br \/>\nRewriteCond %{REQUEST_URI} (\/|.htm|.php|.html|\/[^.]*)$ [NC]<br \/>\nRewriteRule ^(content\/|component\/) index.php<\/p>\n<p><span style=\"font-weight: 300;\">In a file know as htaccess.txt there are some applications<\/span><span style=\"font-weight: 300;\"> already have ready to use rewrite rules that you can find there. But if you have any issues with mod_rewrite, you can contact to your web host for help or raise a ticket<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Based on a regular-expression of a parser the mod-Rewrite module uses a rule-based rewriting engine that is used to rewrite the requested URLs at server level. A rewrite engine may be a software that modifies an web URL\u2019s look (URL rewriting). Rewritten URLs (sometimes called short, fancy URLs, or search engine friendly \u2013 SEF) are [&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,24],"tags":[],"class_list":["post-1319","post","type-post","status-publish","format-standard","hentry","category-tutorials","category-web-hosting"],"_links":{"self":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/1319","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=1319"}],"version-history":[{"count":1,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/1319\/revisions"}],"predecessor-version":[{"id":1320,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/1319\/revisions\/1320"}],"wp:attachment":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/media?parent=1319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/categories?post=1319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/tags?post=1319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}