Category Archives: apache

Apache 2 mod_rewrite

Overview Enable mod_rewrite * Edit httpd.conf and uncomment this line: LoadModule rewrite_module modules/mod_rewrite.so mod_rewrite Comments * You can use RewriteEngine off to ignore rewrite statements RewriteEngine off   RewriteCond %{HTTP_HOST} !^www.example.com$ [NC]   RewriteRule .? http://www.example.com%{REQUEST_URI} [R=301,L]   RewriteEngine on … Continue reading

Posted in apache | Comments Off on Apache 2 mod_rewrite