I have a htaccess file that it work perfectly on host but when I put it on local ,it shows me this error:
Internal Server Error
The server
On your command line:
Install mod_headers
sudo a2enmod headers
and then restart apache
service apache2 restart
Try this:
<IfModule mod_headers.c> Header set [your_options] </IfModule>
Have you restarted WAMP after installing / enabling?
the Header
directive is in the mod_headers
apache module. You need to make sure that module is loaded into the apache server.
This answer works for me
<IfModule mod_headers.c> Header set [your_options] </IfModule>
Steps to enable HEADERS modules
$ cd /etc/apache2/mods-available
$ sudo a2enmod headers
$ /etc/init.d/apache2 restart
In an Ubuntu/Debian Machine you can simply run this command:
sudo ln -s /etc/apache2/mods-available/headers.load /etc/apache2/mods-enabled/
and should be all set.....