{"id":54,"date":"2010-05-11T11:17:16","date_gmt":"2010-05-11T15:17:16","guid":{"rendered":"http:\/\/www.xavignu.com\/?p=54"},"modified":"2010-05-11T11:19:29","modified_gmt":"2010-05-11T15:19:29","slug":"apache-mod-rewrite-in-debian","status":"publish","type":"post","link":"https:\/\/www.xavignu.com\/?p=54","title":{"rendered":"Apache mod ReWrite in Debian"},"content":{"rendered":"<p>Installing <a href=\"http:\/\/www.apache.org\/\" target=\"_blank\">apache<\/a> on a <a href=\"http:\/\/www.debian.org\" target=\"_blank\">Debian<\/a> server is quite easy. Just type:<\/p>\n<p><b>sudo aptitude install apache2<\/b><\/p>\n<p>But the previous command misses an important Apache module. The <a href=\"http:\/\/httpd.apache.org\/docs\/2.0\/mod\/mod_rewrite.html\" target=\"_blank\">ModRewrite<\/a> module. How do we install this module? There are two ways, the easy and the hard way. Lets explain the easy way first. Type:<\/p>\n<p><b>sudo a2enmod rewrite &#038;&#038; sudo \/etc\/init.d\/apache2 restart<\/b><\/p>\n<p>That&#8217;s it. Module installed and ready to go. Lets explain the hard way now.<\/p>\n<p><b>sudo find \/usr\/lib -type f -name &#8220;mod_rewrite.so&#8221;<\/b><\/p>\n<p><b>sudo vim \/etc\/apache2\/mods-enabled\/rewrite.load<\/b><\/p>\n<p>Write the where the rewrite module is located, probably:<\/p>\n<p><b>LoadModule rewrite_module \/usr\/lib\/apache2\/modules\/mod_rewrite.so<\/b><\/p>\n<p>And finally:<\/p>\n<p><b>sudo \/etc\/init.d\/apache2 restart<\/b><br \/>\n<br \/><a href=\"http:\/\/httpd.apache.org\/docs\/2.0\/mod\/mod_rewrite.html\" target=\"_blank\">Here<\/a> is a small intro on how to use this module.<br \/>\n<br \/>Enjoy.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installing apache on a Debian server is quite easy. Just type: sudo aptitude install apache2 But the previous command misses an important Apache module. The ModRewrite module. How do we install this module? There are two ways, the easy and the hard way. Lets explain the easy way first. Type: sudo a2enmod rewrite &#038;&#038; sudo [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[3],"tags":[20,22,6,21,23,70],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/pTQgt-S","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.xavignu.com\/index.php?rest_route=\/wp\/v2\/posts\/54"}],"collection":[{"href":"https:\/\/www.xavignu.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xavignu.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xavignu.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xavignu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=54"}],"version-history":[{"count":0,"href":"https:\/\/www.xavignu.com\/index.php?rest_route=\/wp\/v2\/posts\/54\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.xavignu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=54"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xavignu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=54"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xavignu.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}