In most of case, you may face a common issue that rewrite module (mod_rewrite) does not work properly..
You are getting this error because of it is not enabled by default in setting of Apache's configuration.
You can solve this by enable it manually with simple steps.
- You need to simple open your apache’s configuration file that is generally located in {path of apache directory}/conf/httpd.conf.
- Find the string "#LoadModule rewrite_module modules/mod_rewrite" in httpd.conf file. Remove # sign to uncomment it because # sign indicate that this is comment part.
#LoadModule rewrite_module modules/mod_rewrite.so To LoadModule rewrite_module modules/mod_rewrite.so
- Now find other string AllowOverride None and change it with AllowOverride ALL.
- Now save the changes what you have done and restart your server.