15053971836 注册 / 登录

wordpress如何设置伪静态

时间: 阅读:356
wordpress如何设置伪静态

最佳回答

清风若雨

清风若雨

2023-01-15 13:20:12

你好,设置方法如下:
用下面这个试试:
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
# Rules to ensure that normal content gets through
RewriteRule /sitemap.xml /sitemap.xml [L]
RewriteRule /favicon.ico /favicon.ico [L]
# For file-based wordpress content (i.e. theme), admin, etc.
RewriteRule /wp-(.*) /wp-$1 [L]
# For normal wordpress content, via index.php
RewriteRule ^/$ /index.php [L]
RewriteRule /(.*) /index.php/$1 [L]

最新回答共有4条回答

  • 匿名用户
    回复
    2023-01-15 16:16:24

    重写的问题,需要配置可找我,看是什么环境吧加上伪静态就可以了,不同环境处理方式不同

  • 匿名用户
    回复
    2023-01-15 16:16:24

    应该是 url静态化的设置问题

  • 游客
    回复
    2023-01-15 15:15:14

    1、首先登陆你的wordpress网站后台,默认后台路径为:www.域名.com./wp-admin
    2、登陆到wordpress后台,点击左侧的设置——固定链接
    3、选择“自定义结构”,输入伪静态规则代码。这里提供了2种方式供你参考:/%post_id%.html /%postname%.html
    4、设置保存后,可打开内页任意一篇文章,查看是否设置成功。