Reputation: 4873
I'm setting up XAMPP on my computer, and I'm having trouble with my .htaccess files. However, these are configured exactly as I want them for my server, but my localhost needs some different rules. Is there a way for me to make the Apache server look for something like .htaccess.localhost instead, so I can modify my .htaccess for my localhost and server separately?
Thanks.
Upvotes: 1
Views: 1254
Reputation: 2719
In config file for Apache you can find next section
#
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives. See also the AllowOverride
# directive.
#
AccessFileName .htaccess
I think this will help you.
Upvotes: 2