Apache的重写规则:坏的标志符 [英] Apache RewriteRule: bad flag delimiters
本文介绍了Apache的重写规则:坏的标志符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我的.htaccess文件
This is my .htaccess file
# Redirect every request to index.php
RewriteBase /
RewriteEngine on
RewriteRule .* to public/index.php
和我收到以下错误error.log中:
And i'm receiving the following error in the error.log:
重写规则:坏的标志符
什么是错的.htaccess文件? (我刚开始stying的mod_rewrite模块)。
What's wrong with the .htaccess file? (I just started stying mod_rewrite module).
编辑:.htaccess文件是在该网站的根目录
the .htaccess file is in the site's root.
推荐答案
删除到
RewriteRule .* public/index.php
这篇关于Apache的重写规则:坏的标志符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文