WordPress 404 问题 [英] Wordpress 404 problem

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

问题描述

我有一个 wordpress 博客,我需要在网站上添加一个 php 文件.问题是我上传到网站的任何 php 文件,我都会收到 Wordpress 生成的 404 错误.

I have a wordpress blog and I need to add a php file on the website. The problem is whatever php file I upload to the website, I get a Wordpress generated 404 error.

我认为这是 .htaccess 或权限错误,但我找不到任何修复方法.

I believe this is a .htaccess or permissions error, but I can't find any fix for it.

文件:.htaccess

# -FrontPage- 
#IndexIgnore .htaccess /.?? ~ *
# */HEADER /README /_vti 
<Limit GET POST>
    order deny,allow deny from all allow from all
</Limit> 
<Limit PUT DELETE> 
    order deny,allow deny from all 
</Limit> 
AuthName doctortipster.com 
AuthUserFile /home/doctips/public_html/_vti_pvt/service.pwd 
AuthGroupFile /home/doctips/public_html/_vti_pvt/service.grp

# BEGIN WordPress 
<IfModule mod_rewrite.c> 
    RewriteEngine On 
    RewriteBase / 
    RewriteRule ^index\.php$ - [L] 
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteRule . /index.php [L] 
</IfModule> 
# END WordPress

你知道是什么原因造成的吗?

Do you have any idea what could cause it?

谢谢

推荐答案

试试这一行:

RewriteRule   PATH/TO/YOUR/SCRIPT.php - [L]

这篇关于WordPress 404 问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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