得到以下htaccess错误

时间:2018-05-27 09:44:52

标签: apache .htaccess

在localhost服务器(简单php),htaccess文件生成505错误,这里我添加了错误日志
.htaccess:无效的命令' bbaw',可能拼写错误或由服务器配置中未包含的模块定义

无效的命令' css',可能拼写错误或由未包含在服务器配置中的模块定义

htaccess file command:
    <IfModule mod_mime.c>
        AddCharset utf-8 .atom \
                         .bbaw \
                         .css \
                         .geojson \
                         .ics \
                         .js \
                         .json \
                         .jsonld \
                         .manifest \
                         .markdown \
                         .md \
                         .mjs \
                         .rdf \
                         .rss \
                         .topojson \
                         .vtt \
                         .webapp \
                         .webmanifest \
                         .xloc \
                         .xml
    </IfModule>

任何帮助将不胜感激

1 个答案:

答案 0 :(得分:1)

您可以使用:

<IfModule mod_mime.c>
    AddCharset utf-8 .atom .bbaw .css .geojson .ics .js .json .jsonld .manifest .markdown .md .mjs .rdf .rss .topojson .vtt .webapp .webmanifest .xloc .xml
</IfModule>