apache里的wordpress伪静态永久规则(百度的)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache里的wordpress伪静态永久规则(百度的)相关的知识,希望对你有一定的参考价值。

RewriteEngine on 

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

#RewriteRule . /index.php [L]

RewriteRule /sitemap.xml /sitemap\.xml [L]

RewriteRule /wp-(.*) /wp-$1 [L]

RewriteRule ^/$ /index\.php [L]

RewriteRule /(.*) /index\.php/$1 [L]

RewriteRule /tag/(.*) /index\.php\?tag=$1

RewriteRule /(contact|about|sitemap|services|update-log|privacy|tools|links|exchange)/ /index\.php\?pagename=$1

RewriteRule /category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed\.php\?category_name=$1&feed=$2

RewriteRule /category/?(.*)/ /index\.php\?category_name=$1

RewriteRule /author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed\.php\?author_name=$1&feed=$2

RewriteRule /author/(.*)/page/(.*)/$ /index\.php\?author_name=$1&page=$2

RewriteRule /author/?(.*) /index\.php\?author_name=$1

RewriteRule /feed/?$ /index\.php/\?feed=rss2

RewriteRule /comments/feed/?$ /index\.php/\?feed=comments-rss2

RewriteRule /page/(.*)/ /index\.php\?paged=$1

RewriteRule /([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/?([0-9]+)?/?$ /index\.php\?year=$1&monthnum=$2&day=$3&name=$4&page=$5

RewriteRule /([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$ /index\.php\?year=$1&monthnum=$2&day=$3&page=$4

RewriteRule /([0-9]{4})/([0-9]{1,2})/?$ /index\.php\?year=$1&monthnum=$2&page=$3

RewriteRule /([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /index\.php\?year=$1&monthnum=$2&day=$3&name=$4&feed=$5

RewriteRule /([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/trackback/?$ /wp-trackback\.php\?year=$1&monthnum=$2&day=$3&name=$4&tb=1


以上是关于apache里的wordpress伪静态永久规则(百度的)的主要内容,如果未能解决你的问题,请参考以下文章

转载nginx下wordpress使用永久链接 配置伪静态

在Windows主机下安装的WordPress,设置成伪静态后网页中的图片无法显示,请问这是怎么回事?

WordPress伪静态规则设置

apache伪静态规则解析

wordpress本地伪静态设置

linux下的php网站放到Windows服务器IIS下导入 .htaccess文件伪静态规则转换 (wordpress)