Trying to make mod_rewrite to work on Windows

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:

<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 ^signup/$ /signup.php [L]

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

Any ideea why?

Thanks.

Psyche,

Try removing the trailing /.

THEN I would recommend learning some regex. If you have no place to start, the mod_rewrite tutorial linked in my signature does go through regex development.

Regards,

DK

Oh, so what can I do in order to make it work?

I did that and still doesn’t work. I have to mention that the code above works on a Linux server.

Yes, the regex did not match and there is no wcc/signup directory.

Regards,

DK