Skip to main content

Magento2 throws 500 internal server error

I installed Magento2.2. After installing when I visit the site, it shows

500 Internal Server Error

The same for admin section as well.

I removed my .htaccess from root folder and tried. This time around front end loads without css and js, but admin section shows

404 Not Found

Can someone help?

I referred below but no luck.

Css and admin panel not working in Magento 2 Community Edition

My Apache error log says

[Sun Jan 21 16:40:19.568718 2018] [core:alert] [pid 12172:tid 1100] [client ::1:56158] D:/wamp/www/anto/certification/magento2/.htaccess: Invalid command IfVersion, perhaps misspelled or defined by a module not included in the server configuration,

Anto S
  • 1.4k
  • 5
  • 30
  • 56