Link to home
Start Free TrialLog in
Avatar of ddantes
ddantesFlag for United States of America

asked on

Can I configure WampServer to ignore my .htaccess?

My .htaccess includes redirects which make it impossible to load localhost.  However, I'd like to keep a copy of .htaccess in my document root, because that is the local directory which interacts with my remote server.  Is there a way to configure WampServer so it doesn't try to process .htaccess?   Commenting out the rewrite module does not help.
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ddantes

ASKER

Thank you Dave.  I find two references to htaccess in httpd.conf, and I'm not sure what to comment out.  Here are both references...

--------------------------------------------------------------------------------------------------------------------
 #
    # 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

    #
    # Controls who can get stuff from this server.
    #

#   onlineoffline tag - don't remove
    Order Allow,Deny
    Allow from all
---------------------------------------------------------------------------------------------------------------
#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</FilesMatch>
Hmm must have been an older version.  You could just slightly change the name of the file to something like old.htaccess or .htaccess0 so the name doesn't match.
Avatar of ddantes

ASKER

Too bad.  Well, I can just keep .htaccess sequestered in a separate folder of the root directory, and WampServer doesn't try to process it.  I was hoping to avoid that extra step by configuring httpd.conf to ignore htaccess, but apparently that option doesn't appear in this version?

Here's a link to the WampServer page which offers Apache add-ons, including what appear to be some legacy versions.  Do you recognize any of them as having the configuration feature you mentioned?  
http://www.wampserver.com/en/
No, I'm not going to look at that.  You're making too big a deal out of this when you can just make a slight change in the name to deactivate it.  It's not like you're going upload it again to your main site.
Avatar of ddantes

ASKER

Changing Allowoverride from "all" to "none" did it.  You pointed me in the right direction, as usual.