我的网站搭载字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文件自动修改
发布评论