黄聪:WordPress固定链接设置的几种方法

2023-04-27,,

wordpress固定链接设置的一些参数:

    %year%:基于文章发布的年份,比如2010;
    %monthnum%:基于文章发布的月份,比如01;
    %day%:基于文章发布当日,比如06;
    %hour%:基于文章发布小时数,比如23;
    %minute%:基于文章发布分钟数,比如43;
    %second%:基于文章发布秒数,比如33;
    %postname%:基于文章的postname,其值为撰写时指定的缩略名,不指定缩略名时是文章标题;
    %post_id%:基于文章post_id,比如48;
    %category%:基于文章分类,子分类会处理成“分类/子分类”这种形式;
    %author%:基于文章作者名。

  将上述参数进行组合,即可得到wordpress的固定链接形式。

网上常见的几种设置方法:

/%year%/%monthnum%/%day%/%postname%/

/%year%/%monthnum%/%postname%/

/%year%/%monthnum%/%day%/%postname%.html

/%year%/%monthnum%/%postname%.html

/%category%/%post_id%.html

/%post_id%.html

黄聪:WordPress固定链接设置的几种方法的相关教程结束。

《黄聪:WordPress固定链接设置的几种方法.doc》

下载本文的Word格式文档,以方便收藏与打印。