.htaccess文件自动修改 [英] .htaccess file modifying automatically

查看:218
本文介绍了.htaccess文件自动修改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站搭载字preSS和我也有内部的Word preSS根文件夹.html文件,因为字preSS不允许.html文件,我已经写的.htaccess code打开.html文件,以及字preSS页面,但问题是.htaccess文件会自动修改和.html文件将无法正常工作

I have website powered by WordPress and I also have .html files inside WordPress root folder since WordPress will not allow .html files , I have written .htaccess code to open .html files as well as wordPress pages but the problem is .htaccess file is modifying automatically and .html files will not work

是什么原因造成的?

我.htacces code

my .htacces code

推荐答案

字preSS修改.htaccess文件,如果有必要,但 #BEGIN ... #END字的只有内容preSS 块。添加您自己的作品这一块之外和Word preSS不会碰他们。

WordPress modifies the .htaccess file if necessary, but only the content of the #BEGIN ... #END WordPress block. Add your own entries outside of this block and WordPress will not touch them.

另一种选择是去除的网络服务器,以该文件的写访问,所以字preSS不能直接对其进行修改。字preSS会告诉你,如果需要更改文件。

Another option is to remove write access for the webserver to the file, so WordPress can't modify it directly. WordPress will tell you to change the file if necessary.

这篇关于.htaccess文件自动修改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆