【问题标题】:Magento <IfVersion', perhaps misspelled or defined by a module not included in the server configurationMagento <IfVersion',可能拼写错误或由未包含在服务器配置中的模块定义
【发布时间】:2019-01-15 13:20:05
【问题描述】:
我正在尝试使用 magento 设置 WAMP 服务器,但是每当我尝试访问本地主机中的 magento 文件夹时,我都会收到内部错误。
当我阅读 Apache 错误消息时,它显示“ C:/wamp64/www/Magento2/.htaccess: Invalid command ”
我曾尝试使用 Apache 模块 mod_version,但是我对实际执行的操作感到非常困惑。
任何帮助和建议将不胜感激。
【问题讨论】:
标签:
.htaccess
magento
wamp
host
internal
【解决方案1】:
在 apache 模块中启用 mod_version
在 apache 2.4.9 版本中,mod_version 模块在 WAMP 中被命名为“version_module”。我启用了它,magento 发挥了魅力。
【解决方案2】:
asad abbas 提供的解决方案适用于我的 apache 版本 2.4.39,即在 httpd.conf 文件中启用 mode_version.so。
启用后,该行如下所示:
LoadModule version_module modules/mod_version.so
它的截图是:
【解决方案3】:
转到 apache(httpd.conf) 并取消注释此模块
LoadModule rewrite_module modules/mod_rewrite.so