404没有找到,请求的URL<< URL名称>>在字preSS此服务器上未找到 [英] 404 not found , the requested URL <<url name>> not found on this server in wordpress

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

问题描述

我最近安装的话preSS,我面临的问题时,我试图改变固定链接的格式,

I recently installed wordpress , I am facing issues when I try to change the permalinks format ,

在我的永久改变从默认的日期和时间

when I change the permalink from default to day and time

 Default    http://127.0.0.1/?p=123
 Day and name   http://127.0.0.1/2015/03/16/sample-post/ 

链接产生的简化版,工作,它给出了相同的错误404 所有 时间,

 The requested URL /2015/03/16/post-5-problem/ was not found on this server.

但是,当永久类型是默认情况下完美的作品。

But when the permalink type was default this works perfectly.

我找到了一些解决方案,这是

I found some solutions which are

sudo a2enmod rewrite

Module rewrite already enabled

另一种解决方案是为更改.htaccess文件方式权限666到一些其他类型的(给写权限.htaccess文件的话preSS)的变化之前,默认情况下,永久,

sudo chmod 666 /address_of_.htaccess 

我检查了.htaccess文件

i checked the .htaccess file

# 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

但上面似乎是正确的,上面包括单词preSS本身

but the above seems to be correct , the above included by the wordpress itself

简化版,两者的解决方案似乎工作,还有什么其他的事情我必须改变,以使永久链接选项?

Both the solutions does't seem to work , is there any other thing do I have to change to enable the permalink options ?

推荐答案

如果它是一个新的Web服务器的安装有可能的.htaccess规则默认情况下不容许。为了解决这个问题,编辑您的httpd.conf(通常是在/ etc / apache2的),找到

If it is a fresh install of web server it is possible that .htaccess rules are not allowed by default. To fix that, edit you httpd.conf (usually it is in /etc/apache2), find

<Directory "path/to/your/document/root">    
    # ....

     AllowOverride None

    # ....

</Directory>

和变化

AllowOverride None

AllowOverride All

然后重新启动您的Web服务器,然后重试。

Then restart your web server and try again.

这篇关于404没有找到,请求的URL&LT;&LT; URL名称&gt;&GT;在字preSS此服务器上未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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