字preSS的.htaccess与固定链接 [英] wordpress .htaccess with permalinks

查看:116
本文介绍了字preSS的.htaccess与固定链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个永久的工作,但只要我创建了一个帖子它告诉我,soory后没有找到固定链接设置是/%页面名称%/这里是的.htaccess:

 #BEGIN字preSS
    < IfModule mod_rewrite.c>
    RewriteEngine叙述上
    的RewriteBase /瑞安/
    的RewriteCond%{} REQUEST_FILENAME!-f
    的RewriteCond%{} REQUEST_FILENAME!-d
    重写规则。瑞安/的index.php [L]
    < / IfModule>
#结束字preSS
 

解决方案

尝试在数据库wp_options清除永久设置,然后重新设置固定链接在Word preSS。它通常是 option_id 30名为 permalink_structure

I have a permalink working but as soon as I create a post it tells me that soory post not found permalink setting is to "/%pagename%/" and here is .htaccess:

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

解决方案

Try clearing the permalink setting in wp_options in the database and then reset permalinks in Wordpress. It's usually option_id 30 and called permalink_structure.

这篇关于字preSS的.htaccess与固定链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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