Trying to make mod_rewrite to work on Windows

Posted by Psyche on Server Fault See other posts from Server Fault or by Psyche
Published on 2010-06-08T14:55:06Z Indexed on 2010/06/08 15:02 UTC
Read the original article Hit count: 152

Filed under:
|
|

Hello guys,

I'm having some trouble confinguring Apache mod_rewrite on Windows. I'm using latest version of XAMPP on Windows Vista.

Here's my httpd.conf file:

LoadModule rewrite_module modules/mod_rewrite.so

<Directory />
  Options FollowSymLinks
  AllowOverride All 
</Directory>

<Directory "D:/Server">
  Options Indexes FollowSymLinks Includes ExecCGI
  AllowOverride All
  Order allow,deny
  Allow from all
</Directory>

My .htacces file looks like this:

Options +FollowSymLinks
RewriteEngine On
RewriteBase /wcc/
RewriteRule ^red-wines/$ /red-wines.php [L]

When I try to access http://localhost/wcc/red-wines/ I get a 404 not found error.

Any ideea why?

Thanks.

© Server Fault or respective owner

Related posts about Windows

Related posts about apache2