Magento – Magento 2.2.2 .htaccess Internal Server Error

magento2.2.2

I have uploaded 2.2.2 file on my server and wanted to install it but it gives Internal Server Error.
I have checked the cPanel error.log and found following error log

[Thu Dec 28 22:35:40.272102 2017] [core:alert] [pid 28738] [client
103.38.161.68:41924] /public_html/.htaccess: Invalid command ' < IfVersion', perhaps misspelled or defined by a module not included in the server configuration

How can I do?

Thank you

Best Answer

Make sure you have mod_version installed (see https://httpd.apache.org/docs/2.4/mod/mod_version.html )

If you cannot install mod_version on your server, you can revert this PR in your local .htaccess Files

https://github.com/magento/magento2/pull/11459/files

but I strongly recommand not doing this, as locally modifying files always makes is nearly impossible to update later! And depending on your setup it should be quite easy to install mod_version.

Related Topic