SEO名词百科-投稿申请-关于小六-网站地图 不懂SEO,不懂网站优化从何入手?到重庆SEO【小六】SEO教程自学网,小六在这里狂甩SEO干货,助你自学成才!
当前位置:SEO首页>建站知识 >正文

织梦伪静态插件(织梦tag伪静态)

时间:2020-11-04 11:26:51 作者:背锅熊 阅读:185次撤稿申请

为了方便,做站静态的每次更新都很麻烦,这是要就需要一个伪静态插件了,这款伪静态插件简单明了(首页、栏目、内容、TAG、搜索页)全都伪静态处理
咨询本站客服QQ:获得(10元一份) (只有utf-8版本)

伪静态插件
特点:

1、伪静态地址与真实静态地址URL一致

2、支持PC和手机版

3、支持首页、栏目页、内容页、搜索页、TAG标签页的伪静态

4、SEO优化与纯静态页面无异

5、省去繁琐的配置伪静态,只需安装此插件,一键实现整站伪静态。

伪静态插件安装说及配置说明★

1、登录织梦后台,找到左侧菜单lsquo;模块rsquo;- lsquo;上传新模块rsquo;

2、点击选择文件上传gbkml或者utf8ml,点击确定完成插件的上传

3、点击左侧菜单lsquo;模块rsquo;- lsquo;模块管理rsquo;,点击插件名称右边的lsquo;安装rsquo;

4、安装界面可以查看目录是否具有写入权限,需要写入权限才能保证插件的正确安装

5、lsquo;对于已存在文件处理方法rsquo;,请选择lsquo;覆盖rsquo;,点击确定即可完成插件的安装

6、安装好插件后,在lsquo;模块rsquo; - lsquo;辅助插件rsquo; - lsquo;伪静态助手rsquo;处填写并保存配置信息

7、点击ldquo;详情参见rdquo;按钮复制伪静态代码到指定位置

8、伪静态成功开启

织梦伪静态开启前后对比:

伪静态开启前伪静态开启后
首页wwwxx.comwwwxx.com
栏目页wwwxx.com/xinwen/wwwxx.com/xinwen/
内容页wwwxx.com/xinwen/2019/0324/1234.htmlwwwxx.com/xinwen/2019/0324/1234.html
搜索页wwwxx.com/plus/search.q关键词wwwxx.com/search/关键词.html
TAG标签页wwwxx.com/tags./TAG/wwwxx.com/tags/TAG.html

如何鉴别一个网站是伪静态还是真静态

方法一、查看列表页的文章点击次数,如果实时更新,则说明是伪静态,否则为真静态

方法二、使用谷歌Chrome浏览器查看

先用Chrome浏览器打开该网址 ,等网页完全打开后进入浏览器的控制台,方法:quot;开发者工具quot;-ldquo;错误控制台rdquo;,快捷键:shift+ctrl+J ,然后在控制台里面输入:alert(document.lastModified); ,按回车键后查看最后修改时间并记录。

如果弹出的窗口显示的时间为当前时间,则说明是伪静态,否则为真静态。

按照以上步骤配置完后,需要将静态规则部署到相应的服务器或者虚拟主机中:

一、如果您的主机是apache环境

请将以下伪静态代码拷贝至根目录下的.htaccess文件中:

dedecms电脑端目录结构apache伪静态RewriteEngine OnRewriteBase /RewriteCond {REQUEST_URI} /+[^\.]+RewriteRule ^(.+[^/]) {REQUEST_URI}/ [R301,L]首页RewriteRule ^/ /plus/rewrite_index\. [L]RewriteRule ^index\.html /plus/rewrite_index\. [L]RewriteRule ^index\. /plus/rewrite_index\. [L]首页RewriteRule ^dede/  /dede/index.TAG标签RewriteRule ^tags\.html /plus/rewrite_tags\.RewriteRule ^tags/(.)\.html /plus/rewrite_tags\.\\/1 [L]RewriteRule ^tags/(.)_([0-9])(:(\.))\.html /plus/rewrite_tags.\/1\/2; [L]搜索页RewriteRule ^search/(.)/([0-9]+)\.html  /plus/rewrite_search.q1amp;PageNo2amp;pagesize10amp;searchtypetitle [L]RewriteRule ^search/(.)\.html  /plus/rewrite_search.q1amp;pagesize10amp;searchtypetitle [L]列表栏目RewriteRule ^(.)/ /plus/rewrite_list.tid1[L]列表栏目分页RewriteRule ^(.)/list_([0-9]+)_([0-9]+)\.html /plus/rewrite_list.tid1amp;PageNo2 [L]RewriteRule ^(.)/list_([0-9]+)\.html /plus/rewrite_list.tid1amp;PageNo2[L]文章页RewriteRule ^(.)/(.)\.html /plus/rewrite_view.aid1文章页分页RewriteRule ^(.)/([0-9]+)_([0-9]+)\.html /plus/rewrite_view.aid1amp;pageno2

如果需要手机端伪静态,请将以下伪静态代码拷贝至/m目录下的.htaccess文件中:

dedecms手机目录结构apache伪静态RewriteEngine OnRewriteBase /mRewriteCond {REQUEST_URI} /+[^\.]+RewriteRule ^(.+[^/]) {REQUEST_URI}/ [R301,L]首页RewriteRule ^ /plus/rewrite_index\.mobile1 [L]RewriteRule ^index\.html /plus/rewrite_index\.mobile1 [L]RewriteRule ^index\. /plus/rewrite_index\.mobile1[L]TAG标签RewriteRule ^tags\.html /plus/rewrite_tags\.mobile1 [L]RewriteRule ^tags/(.)\.html /plus/rewrite_tags\.\\/1amp;mobile1 [L]RewriteRule ^tags/(.)_([0-9])(:(\.))\.html /plus/rewrite_tags.\/1\/2amp;mobile1[L]搜索页RewriteRule ^search/(.)/([0-9]+)\.html  /plus/rewrite_search.q1amp;PageNo2amp;pagesize10amp;searchtypetitleamp;mobile1 [L]RewriteRule ^search/(.)\.html  /plus/rewrite_search.q1amp;pagesize10amp;searchtypetitleamp;mobile1[L]列表栏目RewriteRule ^(.)/ /plus/rewrite_list.tid1amp;mobile1[L]列表栏目分页RewriteRule ^(.)/list_([0-9]+)_([0-9]+)\.html /plus/rewrite_list.tid1amp;PageNo2amp;mobile1 [L]RewriteRule ^(.)/list_([0-9]+)\.html /plus/rewrite_list.tid1amp;PageNo2amp;mobile1[L]文章页RewriteRule ^(.)/(.)\.html /plus/rewrite_view.aid1amp;mobile1文章页分页RewriteRule ^(.)/([0-9]+)_([0-9]+)\.html /plus/rewrite_view.aid1amp;pageno2amp;mobile1

二、如果您的主机是nginx环境

把大括号{}里的代码放到你的nginx配置文件location /{}里面去。如你的环境是使用宝塔面板搭建的,请直接将下面文本框里面的代码粘贴到站点设置中的ldquo;伪静态rdquo;选项卡中。

location / {手机版伪静态规则首页rewrite ^/m/ /plus/rewrite_index.mobile1 last;rewrite ^/m/index\.html /plus/rewrite_index.mobile1 last;rewrite ^/m/index\. /plus/rewrite_index.mobile1last;TAG标签rewrite ^/m/tags\.html /plus/rewrite_tags.mobile1 last;rewrite ^/m/tags/(.)\.html /plus/rewrite_tags./1amp;mobile1 last;rewrite ^/m/tags/(.)_([0-9])(:(\.))\.html /plus/rewrite_tags./1/2amp;mobile1last;搜索页rewrite ^/m/search/(.)/([0-9]+)\.html  /plus/rewrite_search.q1amp;PageNo2amp;pagesize10amp;searchtypetitleamp;mobile1 last;rewrite ^/m/search/(.)\.html  /plus/rewrite_search.q1amp;pagesize10amp;searchtypetitleamp;mobile1last;列表栏目rewrite ^/m/(.)/ /plus/rewrite_list.tid1amp;mobile1last;列表栏目分页rewrite ^/m/(.)/list_([0-9]+)_([0-9]+)\.html /plus/rewrite_list.tid1amp;PageNo2amp;mobile1 last;rewrite ^/m/(.)/list_([0-9]+)\.html /plus/rewrite_list.tid1amp;PageNo2amp;mobile1last;文章页rewrite ^/m/(.)/(.)\.html /plus/rewrite_view.aid1amp;mobile1last;文章页分页rewrite ^/m/(.)/([0-9]+)_([0-9]+)\.html /plus/rewrite_view.aid1amp;pageno2amp;mobile1last;PC版伪静态规则首页rewrite ^/ /plus/rewrite_index. last;rewrite ^/index\.html /plus/rewrite_index. last;rewrite ^/index\. /plus/rewrite_index. last;后台首页rewrite ^/dede/  /dede/index. last;TAG标签rewrite ^/tags\.html /rewrite_tags.;rewrite ^/tags/(.)\.html /rewrite_tags./1 last;rewrite ^/tags/(.)_([0-9])(:(\.))\.html /rewrite_tags./1/2last;搜索页rewrite ^/search/(.)/([0-9]+)\.html  /plus/rewrite_search.q1amp;PageNo2amp;pagesize10amp;searchtypetitle last;rewrite ^/search/(.)\.html  /plus/rewrite_search.q1amp;pagesize10amp;searchtypetitle last;列表栏目rewrite ^(.)/ /plus/rewrite_list.tid1last;列表栏目分页rewrite ^(.)/list_([0-9]+)_([0-9]+)\.html /plus/rewrite_list.tid1amp;PageNo2 last;rewrite ^(.)/list_([0-9]+)\.html /plus/rewrite_list.tid1amp;PageNo2last;文章页rewrite ^(.)/(.)\.html /plus/rewrite_view.aid1;文章页分页rewrite ^(.)/([0-9]+)_([0-9]+)\.html /plus/rewrite_view.aid1amp;pageno2;if (request_uri  !~  \.html) { rewrite ^(.[^/]) 1/ permanent;}}

伪静态插件3.0最新版的伪静态规则下载:
伪静态规则3.0下载


http://www.seo-6.com/jzzhishi/88205.html

(黑客微信:37009930)

    顶一下
    (0)
    0%
    踩一下
    (0)
    0%

    版权声明:

    1、本文由SEO内容部分来自互联网,保留著作所有权,转载请注明来源,否则谢绝转载;
    2、非原创内容会有明确作者及来源标注。
    3、本文标题:↓↓↓
    织梦伪静态插件(织梦tag伪静态)