I have an Apache 2.2 running on a windows machine.
I am trying to add some URL rewrite directives, and begun with the simplest sanity - rewrite every URL to http://www.facebook.com .
At httpd.conf, I've added the following:
LoadModule rewrite_module modules/mod_rewrite.so
and later in the file, the following:
RewriteEngine on
RewriteRule ^(.*)$ http://www.facebook.com [R]
Redirection doesn't take place at all: when I access existing files, I get them. When I access non-existing addresses, I get the server's 404 page.
I attempted more complex rewrites, with the same result.
What might be the problem? Are there any log files I should check for hints regarding the redirection failure? Thanks!
VirtualHostblock? - Pekka