Magento <IfVersion', perhaps misspelled or defined by a module not included in the server configuration

9k Views Asked by At

I'm trying to setup a WAMP Server with magento however whenever I try and access the magento folder in local host I get an Internal error.

When I read the Apache error message it reads " C:/wamp64/www/Magento2/.htaccess: Invalid command '

I have attempted to use Apache Module mod_version however i got very confused in understanding what to actually do.

Any help and advice would be much appreciated.

3

There are 3 best solutions below

0
asad abbas On

enable mod_version in apache modules

In apache version 2.4.9, mod_version module is named as "version_module" in WAMP. I enabled it and magento worked as charm.

0
Muhammad Ahmed On

Go to apache(httpd.conf) and uncomment this module LoadModule rewrite_module modules/mod_rewrite.so

0
Noor Muhammad On

The solution provided by asad abbas works for me for apache version 2.4.39 i.e. enable mode_version.so in httpd.conf file.

After I enabled it, the line looks something like this:

LoadModule version_module modules/mod_version.so

And its screenshot is:

Screen shot after enabling the module