I want to set the AllowOverride all But I don\'t know how to do it. I have found the following code by searching the google and pasted it in .htaccess
AllowOverride all
.htaccess
I think you want to set it in your httpd.conf file instead of the .htaccess file.
httpd.conf
I am not sure what OS you use, but this link for Ubuntu might give you some pointers on what to do.
https://help.ubuntu.com/community/EnablingUseOfApacheHtaccessFiles