在此服务器上找不到请求的URL / about [英] The requested URL /about was not found on this server

查看:984
本文介绍了在此服务器上找不到请求的URL / about的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的wordpress网站的主页似乎正确显示,但是如果您单击进入其他页面,则会收到以下错误消息:

The home page of my wordpress website seems to be displaying correctly but if you click through to any of the other pages I get the following error message:

Not Found

The requested URL /about was not found on this server.

Apache/2 Server at www.wildlionmedia.co.uk Port 80

我不确定主题或.htaccess文件是否有问题,未正确重写。

I'm not sure whether it's a problem with the theme or the .htaccess file that is not being rewritten correctly.

http://www.wildlionmedia.co.uk /

有什么想法可以解决该问题吗?

Any ideas how I can resolve the issue?

# Switch rewrite engine off in case this was installed under HostPay.
RewriteEngine On

SetEnv DEFAULT_PHP_VERSION 53

DirectoryIndex index.cgi index.php

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

# END WordPress


推荐答案

那不是典型的Wordpress重写块。这是:

That's not a typical Wordpress rewrite block. This is:

# 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

请参见 http://codex.wordpress.org/Using_Permalinks#Where.27s_my_.htaccess_file.3F


我的.htaccess文件在哪里? WordPress的index.php和.htaccess文件
应该放在常规选项页面上网站地址
(URL)设置所指示的目录中。由于文件
的名称以点开头,因此除非通过FTP工具
的首选项显示所有文件,否则
包括隐藏文件,否则该文件可能无法通过FTP客户端
看到。文件。如果通过
Godaddy Hosting Connection安装来安装WordPress,则某些主机(例如Godaddy)可能不会显示,或者
允许您编辑.htaccess。

Where's my .htaccess file? WordPress's index.php and .htaccess files should be together in the directory indicated by the Site address (URL) setting on your General Options page. Since the name of the file begins with a dot, the file may not be visible through an FTP client unless you change the preferences of the FTP tool to show all files, including the hidden files. Some hosts (e.g. Godaddy) may not show or allow you to edit .htaccess if you install WordPress through the Godaddy Hosting Connection installation.

创建和编辑(.htaccess)如果您还没有
.htaccess文件,请创建一个。如果您具有对
服务器的shell或ssh访问权限,则可以通过简单的touch .htaccess命令创建该文件。如果
使用FTP传输文件,请在本地计算机上创建一个文件,
将其命名为1.htaccess,将其上传到WordPress文件夹的根目录
,然后将其重命名为.htaccess。

Creating and editing (.htaccess) If you do not already have a .htaccess file, create one. If you have shell or ssh access to the server, a simple touch .htaccess command will create the file. If you are using FTP to transfer files, create a file on your local computer, call it 1.htaccess, upload it to the root of your WordPress folder, and then rename it to .htaccess.

您可以通过FTP,shell或
主机的控制面板来编辑.htaccess文件。

You can edit the .htaccess file by FTP, shell, or (possibly) your host's control panel.

最简单,最快的操作是重置仪表板中的永久链接>>设置>>永久链接,并确保.htaccess可写,以便WordPress可以编写

并且:您知道要调用 index.cgi 作为默认文档吗?而不是 index.php ?错了删除 index.cgi 。或者也可以尝试删除整行,因为可能不需要在服务器上定义默认文档。

And: are you aware you are calling index.cgi as your default document rather than index.php? That's wrong. Remove index.cgi. Or try removing the whole line, too, because defining a default doc on your server may not be needed.

这篇关于在此服务器上找不到请求的URL / about的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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