Forum Moderators: phranque

Message Too Old, No Replies

Win32 Mod Rewrite Initiation

Need some insight about Win32 Apache Module

         

ryanbrantley

8:50 pm on Oct 12, 2006 (gmt 0)

10+ Year Member



I have a WAMP set-up and am needing to do some rewrites locally.

I checked Apache's (2.0.53) .conf file to see if the module was on:

LoadModule rewrite_module modules/mod_rewrite.so

It was only commented out with the #. I deleted that and restarted Apache.

I threw in the .htaccess with some rewrites that were working just fine on a remote LAMP machine of mine, but for some reason it won't run on my WIN32 box... I have a feeling it's ignoring the .conf but I just don't know what to do.

Anyone?

coopster

9:05 pm on Oct 12, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Hi ryanbrantley, and welcome to WebmasterWorld.

If it is in .htaccess you might have to make sure you have Allowoverride [httpd.apache.org] enabled for that directory and that your per-directory files are named correctly.

ryanbrantley

9:45 pm on Oct 12, 2006 (gmt 0)

10+ Year Member



Thanks.

I'm not a pro at messing around under the hood with Apache.

Wouldn't turning on the rewrite_module enable rewrites for the entire server?

This is what I have in the .htaccess:

RewriteEngine On

RewriteRule ^([A-Za-z_]*)$ $1.php
RewriteRule ^connexion_er_system$ connexion_er_system.php?er=1

ErrorDocument 404 pq2/404.php

If that's not the case, the AllowOveride documentation is a bit confusing to me. Does the AllowOveride go into the .htaccess or the .conf or what?

coopster

10:00 pm on Oct 12, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Here are a couple of related threads that might help ...

htaccess fails to work, could something be wrong? [webmasterworld.com]
apache set up problem? mod rewrite [webmasterworld.com]

ryanbrantley

2:24 pm on Oct 13, 2006 (gmt 0)

10+ Year Member



Yea.. To clarify for anyone else with this problem that isn't familiar with the .conf for apache:


# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All