Apache Ignoring/Not processing .htaccess file -

Apache Ignoring/Not processing .htaccess file

I was getting very frustrated one day wondering why it appeared my .htaccess file was being ignored and not processed by Apache.  No matter what I did it was obvious that Apache didn't care about my .htaccess file.  Then I realized that the default settings must be in effect, which is that my vhost didn't explicitly allow me to override the default settings.

This usually comes down to your vhost settings. Make sure you have an entry like this in your Apache vhost settings in order for .htaccess files to be processed, otherwise the default .htaccess settings in /etc/httpd/conf/httpd.conf are what take effect.

<Directory "/path/toyour/documentroot">
Options FollowSymLinks
AllowOverride All
</Directory>

 

As you can see above, you just need an entry like this to fix the problem.  Be sure that the path in the <Directory directive is the one to your document root for the vhost in order to get the desired results.

Now your htaccess files will work just fine in Apache as you intended them to.


  • Install Windows From a Linux TFTP Server instead of using WDS Solution
  • How To Secure Samba NMBD/SMBD to bind to a specific IP address
  • tftp: client does not accept options - solution if you are using UEFI PXEBoot disable it!
  • Linux how to view video card make and exact model
  • Authentication refused: bad ownership or modes for directory /home/user SSH Public Key Authentication Failed Solution
  • How to Update Linux /usr/share/misc/pci.ids
  • pcimodules and lspci not working alternative solution
  • How to disable Google Fonts in Wordpress
  • Unable to load dynamic library /usr/lib64/php/modules/php_openssl
  • mysqld in Linux hacked
  • W: GPG error: http://archive.debian.org squeeze Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY AED4B06F473041FA NO_PUBKEY 64481591B98321F9
  • cannot mount kvm ntfs image
  • h264 DVR security camera footage cannot be played
  • dhcpd.conf how to secure so only known and allowed clients will be given dhcpd IP address leases
  • Thunderbird E-mail List Blank White but e-mails still clickable and viewable
  • css responsive images
  • responsive table without changing much code solution
  • yum how to install old obsolete packages
  • PHP Howto Store Value of Included File Output Into Variable
  • PHP Migration from 5.3 to 5.4+ and dealing with deprecated functions