> mod_rewrite doesn't work

Rewrite module is loaded by default, but allowing user to specify
rewrites (or anything else) via .htaccess files is disabled in
stock apache configurations.

To allow that, change "AllowOverride None" to "AllowOverride All" in
line ~161 of httpd.conf, allowing overriding anything in user .htaccess
files,

Now you can create /var/apache/2.2/htdocs/.htaccess:

  RewriteEngine On
  RewriteRule ^zzz$ index.html

and visiting http://127.0.0.1/zzz should give "It works!" message.

Cheers,

Einar.

Reply via email to