Reputation:
Actually my project is in WordPress. I'm changing my server from windows to Linux.
After changing this I'm facing this error!
Why isn't my .htaccess
supporting the Linux server?
Upvotes: 1
Views: 2176
Reputation: 74
Checkout the comment in .htaccess file, if it starts with // then change it to #
For me this solved the problem, I wish for you too.
Upvotes: 0
Reputation: 2132
If you're using Apache, you should configure it in order to allow .htaccess files to be executed.
To do so, you can
Allowoverride
to All
(or other). See AllowOverride/etc/apache2/apache2.conf
(or /etc/apache2/httpd.conf
in some versions). In these files, there is a <Directory "/var/www/"
that points to your /var/www/ directory. Inside this Directory tag, you can set AllowOverride
to All
. Using this configuration, every site on your server will be allowed to use .htaccess.I recommend to use the Virtual Host that allows a easier and cleaner configuration.
Upvotes: 2