.htaccess错误的错误500

编程入门 行业动态 更新时间:2024-10-24 04:45:47
本文介绍了.htaccess错误的错误500的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在运行LAMP服务器,而该.htaccess给我500错误。这是过滤关键字并重定向到相应的域名。

I am running a LAMP server, and this .htaccess is giving me a 500 error. What this does is filter keywords and redirect to the respective domain names.

Options +FollowSymLinks <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} xy|yz|xz RewriteRule ^xyz RewriteCond %{HTTP_HOST} ab|bc|ac RewriteRule ^abc <IfModule>

来自error.log的错误消息

/var/www/conf/.htaccess: <IfModule> directive requires additional arguments, referer: localhost/conf/rewrite.php

为什么给我一个500错误,我是否必须检查是否已安装IfModule,或者是否必须安装。

Why does it give me a 500 error, do I have to check if IfModule is installed, or has to be installed.

谢谢Jean

推荐答案

您缺少斜线。结束标记必须为

You are missing a slash. The closing tag must be

</ifModule>

还可以解释错误消息:< IfModule>指令需要其他参数

that also explains the error message: <IfModule> directive requires additional arguments

更多推荐

.htaccess错误的错误500

本文发布于:2023-10-31 15:40:35,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1546532.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   htaccess

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!