{"id":50210,"date":"2015-07-08T00:54:07","date_gmt":"2015-07-08T04:54:07","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=50210"},"modified":"2018-09-21T08:20:33","modified_gmt":"2018-09-21T12:20:33","slug":"how-to-check-whether-mod_rewrite-is-enabled-on-server","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/how-to-check-whether-mod_rewrite-is-enabled-on-server.html","title":{"rendered":"How to check whether mod_rewrite is enabled on server?"},"content":{"rendered":"<p>Our Support team is ready to present a new tutorial that shows how to check if <strong>mod_rewrite<\/strong> is enabled on your server.<\/p>\r\n  <a href=\"http:\/\/www.youtube.com\/watch?v=yNONrY726kI?width=1280&amp;height=720\" rel=\"prettyPhoto\">How to check whether mod_rewrite is enabled on server?<\/a>\r\n <ol>\r\n     <li><p>Open your website root directory, create a php file <strong>mod_rewrite.php<\/strong>:<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/07\/how_to_check__mod_rewrite_enabled_1.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/07\/how_to_check__mod_rewrite_enabled_1-300x157.png\" alt=\"how_to_check__mod_rewrite_enabled_1\" width=\"300\" height=\"157\" class=\"aligncenter size-medium wp-image-50211\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/how_to_check__mod_rewrite_enabled_1-300x157.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/how_to_check__mod_rewrite_enabled_1-150x78.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/how_to_check__mod_rewrite_enabled_1.png 643w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n     <li><p>Add the following line of code to it:<\/p>\r\n\t     <pre class=\"brush:php\">\r\n\t\t &lt;?php echo \"Mod_rewrite is activated!\"; ?&gt;\r\n\t\t <\/pre>\r\n\t\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/07\/how_to_check__mod_rewrite_enabled_2.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/07\/how_to_check__mod_rewrite_enabled_2-300x131.png\" alt=\"how_to_check__mod_rewrite_enabled_2\" width=\"300\" height=\"131\" class=\"aligncenter size-medium wp-image-50212\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/how_to_check__mod_rewrite_enabled_2-300x131.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/how_to_check__mod_rewrite_enabled_2-150x65.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/how_to_check__mod_rewrite_enabled_2.png 509w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n\t <li><p>Create <strong>.htaccess<\/strong> file (rename the original file to <strong>.htacess_original<\/strong> if you have it):<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/07\/how_to_check__mod_rewrite_enabled_3.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/07\/how_to_check__mod_rewrite_enabled_3-300x134.png\" alt=\"how_to_check__mod_rewrite_enabled_3\" width=\"300\" height=\"134\" class=\"aligncenter size-medium wp-image-50213\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/how_to_check__mod_rewrite_enabled_3-300x134.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/how_to_check__mod_rewrite_enabled_3-150x67.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/how_to_check__mod_rewrite_enabled_3.png 596w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n\t <li><p>Add the following content to the file:<\/p>\r\n\t     <pre>\r\n\t\t RewriteEngine On\r\n         RewriteRule ^.*$ mod_rewrite.php\r\n\t\t <\/pre>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/07\/how_to_check__mod_rewrite_enabled_4.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/07\/how_to_check__mod_rewrite_enabled_4-300x96.png\" alt=\"how_to_check__mod_rewrite_enabled_4\" width=\"300\" height=\"96\" class=\"aligncenter size-medium wp-image-50214\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/how_to_check__mod_rewrite_enabled_4-300x96.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/how_to_check__mod_rewrite_enabled_4-150x48.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/how_to_check__mod_rewrite_enabled_4.png 632w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t <\/li>\r\n\t <li><p>Open your site. If you see a message &#8220;Mod_rewrite is activated!&#8221;, it is enabled on your server. If you see anything else &#8211; <strong>mod_rewrite<\/strong> is disabled.<\/p><\/li>\r\n     <li><p>Make sure to delete the <strong>.htaccess<\/strong> file you created and rename the original file back:<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/07\/how_to_check__mod_rewrite_enabled_5.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/07\/how_to_check__mod_rewrite_enabled_5-300x95.png\" alt=\"how_to_check__mod_rewrite_enabled_5\" width=\"300\" height=\"95\" class=\"aligncenter size-medium wp-image-50215\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/how_to_check__mod_rewrite_enabled_5-300x95.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/how_to_check__mod_rewrite_enabled_5-150x47.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/how_to_check__mod_rewrite_enabled_5.png 617w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n\t<\/ol>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=yNONrY726kI?width=1280&amp;height=720\" rel=\"prettyPhoto\">How to check whether mod_rewrite is enabled on server?<\/a>\r\n\r\n<div class=\"inline-banner\">\r\n<a href=\"https:\/\/www.templatemonster.com\/cart.php?addOffer=587\">\r\n<img src=\"\/help\/files\/banners\/inline\/Banner-1-(500-x100).jpg\" \/>\r\n<\/a>\r\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Our Support team is ready to present a new tutorial that shows how to check if <strong>mod_rewrite<\/strong> is enabled on your server.<\/p>\n","protected":false},"author":56,"featured_media":50218,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1019],"tags":[1297,764,2008,637],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/50210"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/56"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=50210"}],"version-history":[{"count":1,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/50210\/revisions"}],"predecessor-version":[{"id":82813,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/50210\/revisions\/82813"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/50218"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=50210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=50210"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=50210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}