吾爱破解 - LCG - LSG |安卓破解|病毒分析|www.52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

搜索
查看: 6590|回复: 109
收起左侧

[Web] 【非原创】关于司徒浩大神发布的SEO优化程序的几点分享和感谢

  [复制链接]
han52036 发表于 2020-12-25 08:39
本帖最后由 han52036 于 2020-12-25 11:28 编辑

原大神的帖子:源码已经开源,有需要的直接去下载就行了。再次感谢大神的原创提供。

https://www.52pojie.cn/thread-1332280-1-1.html

最近每天都有人问我关于我上线后的效果,先看下我的数据:


图片.png

图片.png 图片.png
我单独写的自动提交代码也是有效果的,每天都有推送。

图片.png

上线5天来,一个新站(旧域名)的搜索结果有16个,说明就如那位大神说的一样,效果肯定是有的,但是更多的还是需要自己去优化和更新,不然百度有100多种算法等着你。
以上的数据就是大神SEO程序上线以来的结果。

因为大神第一次发出来,我就进行了解密并上线,再次声明并不是不尊重作者,是的确因为我自己也是小白,然后不管怎么搞 都提示那句,肯本打不开程序,没办法~~ 然后就发现程序有报错,可能是PHP的版本问题造成的。

屁话一大堆了,来干货

百度自动提交代码:
[PHP] 纯文本查看 复制代码
<?php
$urls = array(
    'https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'],
);
$api = 'http://data.zz.baidu.com/urls?site=https://www.xxxxxx.com&token=0000000000';
$ch = curl_init();
$options =  array(
    CURLOPT_URL => $api,
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POSTFIELDS => implode("\n", $urls),
    CURLOPT_HTTPHEADER => array('Content-Type: text/plain'),
);
curl_setopt_array($ch, $options);
$result = curl_exec($ch);
//echo $result;
?>


$api 对应的是百度资源平台的接口调用地址:
//echo $result; 我已经注释了 是输出你推送了多少 还有多少推送量

apche伪静态(SEO是我的目录名称,对应你们自己修改)
[PHP] 纯文本查看 复制代码
RewriteEngine On
RewriteBase /seo/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]


Nginx 的自己对应转化下就行了。


整体部署的流程:


1、下载大神的开源程序及主程序
2、上传到你的网站二级目录(比如seo)
3、部署伪静态
4、添加自动提交代码到index.php,放到ob_start();?>下面即可。
5、打开网站测试,能发现标题和内容能刷新一次变换一次,点击链接也能刷新网站内容变化 就说明成功了。


注意:有的不是用的seo的目录名称,请自行修改伪静态及index.php中JS和CSS的路径地址。


好了。注意好运!



还有不懂的可以回帖,一一回复。


其实我真的是小白。只是喜欢瞎折腾。

很多人还是问我要开源的代码,我直接拿过来打包了。

链接: https://pan.baidu.com/s/1ZJRvyGXtzPHVQs4JRfQFyQ 提取码: ngs5 复制这段内容后打开百度网盘手机App,操作更方便哦





免费评分

参与人数 6吾爱币 +6 热心值 +4 收起 理由
lguang + 1 经测试,同一个URL刷新后标题描述啥的都变了,对SEO不友好吧!
丶夜猫 + 1 热心回复!
arathi + 1 + 1 谢谢@Thanks!
gaopengyue + 1 + 1 我很赞同!
transpuring + 1 + 1 我很赞同!
hnwang + 1 + 1 我很赞同!

查看全部评分

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

jbmir 发表于 2020-12-25 10:37
本帖最后由 jbmir 于 2020-12-25 12:43 编辑

[Asm] 纯文本查看 复制代码
把以下对应的规则复制至.htaccess文件即可,以下的规则多次测试能正常使用

nginx伪静态规则:

------------------------------wordpress------------------------------------

location /

{

try_files $uri $uri/ /index.php?$args;

}


rewrite /wp-admin$ $scheme://$host$uri/ permanent;


------------------------------typecho------------------------------------


typecho

    if (!-e $request_filename) {

        rewrite ^(.*)$ /index.php$1 last;

    }


------------------------------shopex------------------------------------


location / {

if (!-e $request_filename) {

rewrite ^/(.+\.(html|xml|json|htm|php|jsp|asp|shtml))$ /index.php?$1 last;

}

}


------------------------------seacms------------------------------------


location / {

rewrite ^/frim/index(.+?)\.html$ /list/index.php?$1 last;

rewrite ^/movie/index(.+?)\.html$ /detail/index.php?$1 last;

rewrite ^/play/([0-9]+)-([0-9]+)-([0-9]+)\.html$ /video/index.php?$1-$2-$3 last;

rewrite ^/topic/index(.+?)\.html$ /topic/index.php?$1 last;

rewrite ^/topiclist/index(.+?).html$ /topiclist/index.php?$1 last;

rewrite ^/index\.html$ index.php permanent;

rewrite ^/news\.html$ news/ permanent;

rewrite ^/part/index(.+?)\.html$ /articlelist/index.php?$1 last;

rewrite ^/article/index(.+?)\.html$ /article/index.php?$1 last;

}


------------------------------sablog------------------------------------


location / {

rewrite "^/date/([0-9]{6})/?([0-9]+)?/?$" /index.php?action=article&setdate=$1&page=$2 last;

rewrite ^/page/([0-9]+)?/?$ /index.php?action=article&page=$1 last;

rewrite ^/category/([0-9]+)/?([0-9]+)?/?$ /index.php?action=article&cid=$1&page=$2 last;

rewrite ^/category/([^/]+)/?([0-9]+)?/?$ /index.php?action=article&curl=$1&page=$2 last;

rewrite ^/(archives|search|article|links)/?$ /index.php?action=$1 last;

rewrite ^/(comments|tagslist|trackbacks|article)/?([0-9]+)?/?$ /index.php?action=$1&page=$2 last;

rewrite ^/tag/([^/]+)/?([0-9]+)?/?$ /index.php?action=article&item=$1&page=$2 last;

rewrite ^/archives/([0-9]+)/?([0-9]+)?/?$ /index.php?action=show&id=$1&page=$2 last;

rewrite ^/rss/([0-9]+)?/?$ /rss.php?cid=$1 last;

rewrite ^/rss/([^/]+)/?$ /rss.php?url=$1 last;

rewrite ^/uid/([0-9]+)/?([0-9]+)?/?$ /index.php?action=article&uid=$1&page=$2 last;

rewrite ^/user/([^/]+)/?([0-9]+)?/?$ /index.php?action=article&user=$1&page=$2 last;

rewrite sitemap.xml sitemap.php last;

rewrite ^(.*)/([0-9a-zA-Z\-\_]+)/?([0-9]+)?/?$ $1/index.php?action=show&alias=$2&page=$3 last;

}


------------------------------phpwind------------------------------------


location / {

            rewrite ^(.*)-htm-(.*)$ $1.php?$2 last;

            rewrite ^(.*)/simple/([a-z0-9\_]+\.html)$ $1/simple/index.php?$2 last;

        }


------------------------------phpcms------------------------------------


location / {

###以下为PHPCMS 伪静态化rewrite法则

rewrite ^(.*)show-([0-9]+)-([0-9]+)\.html$ $1/show.php?itemid=$2&page=$3;

rewrite ^(.*)list-([0-9]+)-([0-9]+)\.html$ $1/list.php?catid=$2&page=$3;

rewrite ^(.*)show-([0-9]+)\.html$ $1/show.php?specialid=$2;

####以下为PHPWind 伪静态化rewrite法则

rewrite ^(.*)-htm-(.*)$ $1.php?$2 last;

rewrite ^(.*)/simple/([a-z0-9\_]+\.html)$ $1/simple/index.php?$2 last;

}


------------------------------niushop------------------------------------


location / {

if (!-e $request_filename) {

rewrite  ^(.*)$  /index.php?s=$1  last;  

break;

}

}


------------------------------常用的mvc框架------------------------------------


location /{

if (!-e $request_filename) {

   rewrite  ^(.*)$  /index.php/$1  last;

   break;

}

}


------------------------------maccms------------------------------------


rewrite ^/vod-(.*)$ /index.php?m=vod-$1 break;

rewrite ^/art-(.*)$ /index.php?m=art-$1 break;

rewrite ^/gbook-(.*)$ /index.php?m=gbook-$1 break;

rewrite ^/label-(.*)$ /index.php?m=label-$1 break;

rewrite ^/map-(.*)$ /index.php?m=map-$1 break;


------------------------------laravel5------------------------------------


location / {  

try_files $uri $uri/ /index.php$is_args$query_string;  

}  


------------------------------emlog------------------------------------


location / {

index index.php index.html;

if (!-e $request_filename)

{

rewrite ^/(.*)$ /index.php last;

}

}


------------------------------ecshop------------------------------------


if (!-e $request_filename)

{

rewrite "^/index\.html" /index.php last;

rewrite "^/category$" /index.php last;

rewrite "^/feed-c([0-9]+)\.xml$" /feed.php?cat=$1 last;

rewrite "^/feed-b([0-9]+)\.xml$" /feed.php?brand=$1 last;

rewrite "^/feed\.xml$" /feed.php last;

rewrite "^/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /category.php?id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5&page=$6&sort=$7&order=$8 last;

rewrite "^/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)(.*)\.html$" /category.php?id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5 last;

rewrite "^/category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /category.php?id=$1&brand=$2&page=$3&sort=$4&order=$5 last;

rewrite "^/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html$" /category.php?id=$1&brand=$2&page=$3 last;

rewrite "^/category-([0-9]+)-b([0-9]+)(.*)\.html$" /category.php?id=$1&brand=$2 last;

rewrite "^/category-([0-9]+)(.*)\.html$" /category.php?id=$1 last;

rewrite "^/goods-([0-9]+)(.*)\.html" /goods.php?id=$1 last;

rewrite "^/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /article_cat.php?id=$1&page=$2&sort=$3&order=$4 last;

rewrite "^/article_cat-([0-9]+)-([0-9]+)(.*)\.html$" /article_cat.php?id=$1&page=$2 last;

rewrite "^/article_cat-([0-9]+)(.*)\.html$" /article_cat.php?id=$1 last;

rewrite "^/article-([0-9]+)(.*)\.html$" /article.php?id=$1 last;

rewrite "^/brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)\.html" /brand.php?id=$1&cat=$2&page=$3&sort=$4&order=$5 last;

rewrite "^/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html" /brand.php?id=$1&cat=$2&page=$3 last;

rewrite "^/brand-([0-9]+)-c([0-9]+)(.*)\.html" /brand.php?id=$1&cat=$2 last;

rewrite "^/brand-([0-9]+)(.*)\.html" /brand.php?id=$1 last;

rewrite "^/tag-(.*)\.html" /search.php?keywords=$1 last;

rewrite "^/snatch-([0-9]+)\.html$" /snatch.php?id=$1 last;

rewrite "^/group_buy-([0-9]+)\.html$" /group_buy.php?act=view&id=$1 last;

rewrite "^/auction-([0-9]+)\.html$" /auction.php?act=view&id=$1 last;

rewrite "^/exchange-id([0-9]+)(.*)\.html$" /exchange.php?id=$1&act=view last;

rewrite "^/exchange-([0-9]+)-min([0-9]+)-max([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /exchange.php?cat_id=$1&integral_min=$2&integral_max=$3&page=$4&sort=$5&order=$6 last;

rewrite ^/exchange-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /exchange.php?cat_id=$1&page=$2&sort=$3&order=$4 last;

rewrite "^/exchange-([0-9]+)-([0-9]+)(.*)\.html$" /exchange.php?cat_id=$1&page=$2 last;

rewrite "^/exchange-([0-9]+)(.*)\.html$" /exchange.php?cat_id=$1 last;

}


------------------------------drupal------------------------------------


if (!-e $request_filename) {

      rewrite ^/(.*)$ /index.php?q=$1 last;

    }


------------------------------discuz!X3------------------------------------


location / {

rewrite ^([^\.]*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2 last;

rewrite ^([^\.]*)/article-([0-9]+)-([0-9]+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3 last;

rewrite ^([^\.]*)/forum-(\w+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last;

rewrite ^([^\.]*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&page=$3 last;

rewrite ^([^\.]*)/group-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=group&fid=$2&page=$3 last;

rewrite ^([^\.]*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3 last;

rewrite ^([^\.]*)/blog-([0-9]+)-([0-9]+)\.html$ $1/home.php?mod=space&uid=$2&do=blog&id=$3 last;

rewrite ^([^\.]*)/(fid|tid)-([0-9]+)\.html$ $1/index.php?action=$2&value=$3 last;

rewrite ^([^\.]*)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ $1/plugin.php?id=$2:$3 last;

if (!-e $request_filename) {

return 404;

}

}


------------------------------discuz!X2------------------------------------


location /bbs/ {

rewrite ^([^\.]*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2 last;

rewrite ^([^\.]*)/article-([0-9]+)-([0-9]+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3 last;

rewrite ^([^\.]*)/forum-(\w+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last;

rewrite ^([^\.]*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&page=$3 last;

rewrite ^([^\.]*)/group-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=group&fid=$2&page=$3 last;

rewrite ^([^\.]*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3 last;

rewrite ^([^\.]*)/blog-([0-9]+)-([0-9]+)\.html$ $1/home.php?mod=space&uid=$2&do=blog&id=$3 last;

rewrite ^([^\.]*)/(fid|tid)-([0-9]+)\.html$ $1/index.php?action=$2&value=$3 last;

rewrite ^([^\.]*)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ $1/plugin.php?id=$2:$3 last;

if (!-e $request_filename) {

return 404;

}

}


------------------------------discuz!X------------------------------------

rewrite ^([^\.]*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2 last;

rewrite ^([^\.]*)/article-([0-9]+)-([0-9]+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3 last;

rewrite ^([^\.]*)/forum-(\w+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last;

rewrite ^([^\.]*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&page=$3 last;

rewrite ^([^\.]*)/group-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=group&fid=$2&page=$3 last;

rewrite ^([^\.]*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3 last;

rewrite ^([^\.]*)/blog-([0-9]+)-([0-9]+)\.html$ $1/home.php?mod=space&uid=$2&do=blog&id=$3 last;

rewrite ^([^\.]*)/(fid|tid)-([0-9]+)\.html$ $1/index.php?action=$2&value=$3 last;

rewrite ^([^\.]*)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ $1/plugin.php?id=$2:$3 last;

if (!-e $request_filename) {

return 404;

}


------------------------------discuz!------------------------------------

location / {

            rewrite ^/archiver/((fid|tid)-[\w\-]+\.html)$ /archiver/index.php?$1 last;

            rewrite ^/forum-([0-9]+)-([0-9]+)\.html$ /forumdisplay.php?fid=$1&page=$2 last;

            rewrite ^/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ /viewthread.php?tid=$1&extra=page%3D$3&page=$2 last;

            rewrite ^/space-(username|uid)-(.+)\.html$ /space.php?$1=$2 last;

            rewrite ^/tag-(.+)\.html$ /tag.php?name=$1 last;

        }


------------------------------织梦dedecms------------------------------------


rewrite "^/list-([0-9]+)\.html$" /plus/list.php?tid=$1 last;

rewrite "^/list-([0-9]+)-([0-9]+)-([0-9]+)\.html$" /plus/list.php?tid=$1&totalresult=$2&PageNo=$3 last;

rewrite "^/view-([0-9]+)-1\.html$" /plus/view.php?arcID=$1 last;

rewrite "^/view-([0-9]+)-([0-9]+)\.html$" /plus/view.php?aid=$1&pageno=$2 last;

rewrite "^/plus/list-([0-9]+)\.html$" /plus/list.php?tid=$1 last;

rewrite "^/plus/list-([0-9]+)-([0-9]+)-([0-9]+)\.html$" /plus/list.php?tid=$1&totalresult=$2&PageNo=$3 last;

rewrite "^/plus/view-([0-9]+)-1\.html$" /plus/view.php?arcID=$1 last;

rewrite "^/plus/view-([0-9]+)-([0-9]+)\.html$" /plus/view.php?aid=$1&pageno=$2 last;

rewrite "^/tags.html$" /tags.php last;

rewrite "^/tag-([0-9]+)-([0-9]+)\.html$" /tags.php?/$1/$2/ last;


-----------------------------dbshop------------------------------------


location /{

    try_files $uri $uri/ /index.php$is_args$args;

}


location ~ \.htaccess{

    deny all;

}



-----------------------------dabr------------------------------------

location / {

if (!-e $request_filename) {

rewrite ^/(.*)$ /index.php?q=$1 last;

}

}


-----------------------------帝国cms------------------------------------


rewrite ^([^\.]*)/listinfo-(.+?)-(.+?)\.html$ $1/e/action/ListInfo/index.php?classid=$2&page=$3 last;

rewrite ^([^\.]*)/showinfo-(.+?)-(.+?)-(.+?)\.html$ $1/e/action/ShowInfo.php?classid=$2&id=$3&page=$4 last;

rewrite ^([^\.]*)/infotype-(.+?)-(.+?)\.html$ $1/e/action/InfoType/index.php?ttid=$2&page=$3 last;

rewrite ^([^\.]*)/tags-(.+?)-(.+?)\.html$ $1/e/tags/index.php?tagname=$2&page=$3 last;

rewrite ^([^\.]*)/comment-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)\.html$  $1/e/pl/index\.php\?doaction=$2&classid=$3&id=$4&page=$5&myorder=$6&tempid=$7 last;

if (!-e $request_filename) {

return 404;

}


----------------------------edusoho------------------------------------

location / {

    index app.php;

    try_files $uri @rewriteapp;

}

        

location @rewriteapp {

    rewrite ^(.*)$ /app.php/$1 last;

}

----------------------------魔众系统------------------------------------

location / {

        try_files $uri $uri/ /index.php?$query_string;

    }


Apache下CMS伪静态规则:

-----------------------------typecho------------------------------------

<IfModule mod_rewrite.c>

  RewriteEngine On

  RewriteBase /

  RewriteCond %{REQUEST_FILENAME} !-f

  RewriteCond %{REQUEST_FILENAME} !-d

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

</IfModule>

-----------------------------帝国cms------------------------------------

RewriteEngine On

RewriteBase /

RewriteRule ^([0-9]+).([0-9]+)/$ e/action/ShowInfo.php?classid=$1&id=$2 [L]

RewriteRule ^([0-9]+).([0-9]+)$ $1.$2/ [L,R=301]

RewriteRule ^([0-9]+)/$ e/action/ListInfo/?classid=$1 [L]

RewriteRule ^([0-9]+)$ $1/ [L,R=301]

RewriteRule ^list([0-9]+).([0-9]+)/$ e/action/ListInfo/index.php?page=$1&classid=$2 [L]

RewriteRule ^list([0-9]+).([0-9]+)$ list$1.$2/ [L,R=301]

RewriteRule^archive([0-9]+).([0-9]+)-([0-9]+)-([0-9]+)/$e/action/ListInfo.php?classid=$1&mid=1&tempid=9&starttime=$2-$3-$4&endtime=$2-$3-$4 [L]

RewriteRule^archive([0-9]+).([0-9]+)-([0-9]+)-([0-9]+)$^archive([0-9]+).([0-9]+)-([0-9]+)-([0-9]+)/ [L,R=301]


-----------------------------织梦cms(dedecms)------------------------------------

RewriteEngine On

RewriteBase /

RewriteRule ^(.*)/question-id-([0-9]+)\.html$ $1/question\.php\?id=$2

RewriteRule ^(.*)/browser-tid-([0-9]+)\.html$ $1/browser\.php\?tid=$2

RewriteRule ^(.*)/browser-tid2-([0-9]+)\.html$ $1/browser\.php\?tid2=$2

RewriteRule ^(.*)/browser-lm-([0-9]+)\.html$ $1/browser\.php\?lm=$2

RewriteRule ^(.*)/browser-tid-([0-9]+)-lm-([0-9]+)\.html$ $1/browser\.php\?tid=$2&lm=$3

RewriteRule ^(.*)/browser-tid2-([0-9]+)-lm-([0-9]+)\.html$ $1/browser\.php\?tid2=$2&lm=$3

RewriteRule ^(.*)index\.html$ $1/index.php

RewriteRule ^(.*)list-([0-9]+)\.html$ $1/plus/list.php?tid=$2

RewriteRule ^(.*)list-([0-9]+)-([0-9]+)\.html$ $1/plus/list.php?typeid=$2&PageNo=$3

RewriteRule ^(.*)view-([0-9]+).html$ $1/plus/view.php?aid=$2

RewriteRule ^(.*)view-([0-9]+)-([0-9]+).html$ $1/plus/view.php?aid=$2&pageno=$3


-----------------------------discuz!X3------------------------------------

RewriteEngine On

RewriteBase /

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^([a-z]+)-(.+)\.html$ $1.php?rewrite=$2&%1


-----------------------------discuz!X2------------------------------------

RewriteEngine On

RewriteBase /

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ plugin.php?id=$1:$2&%1


-----------------------------discuz3------------------------------------

RewriteEngine On

RewriteBase /

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ plugin.php?id=$1:$2&%1


-----------------------------ecshop------------------------------------

RewriteEngine On

RewriteBase /

# direct one-word access

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

RewriteRule ^category$ index\.php [L]

# access any object by its numeric identifier

RewriteRule ^feed-c([0-9]+)\.xml$ feed\.php\?cat=$1 [L]

RewriteRule ^feed-b([0-9]+)\.xml$ feed\.php\?brand=$1 [L]

RewriteRule ^feed\.xml$ feed\.php [L]

RewriteRule ^category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ category\.php\?id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5&page=$6&sort=$7&order=$8 [QSA,L]

RewriteRule ^category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)(.*)\.html$ category\.php\?id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5 [QSA,L]

RewriteRule ^category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ category\.php\?id=$1&brand=$2&page=$3&sort=$4&order=$5 [QSA,L]

RewriteRule ^category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html$ category\.php\?id=$1&brand=$2&page=$3 [QSA,L]

RewriteRule ^category-([0-9]+)-b([0-9]+)(.*)\.html$ category\.php\?id=$1&brand=$2 [QSA,L]

RewriteRule ^category-([0-9]+)(.*)\.html$ category\.php\?id=$1 [QSA,L]

RewriteRule ^goods-([0-9]+)(.*)\.html$ goods\.php\?id=$1 [QSA,L]

RewriteRule ^article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ article_cat\.php\?id=$1&page=$2&sort=$3&order=$4 [QSA,L]

RewriteRule ^article_cat-([0-9]+)-([0-9]+)(.*)\.html$ article_cat\.php\?id=$1&page=$2 [QSA,L]

RewriteRule ^article_cat-([0-9]+)(.*)\.html$ article_cat\.php\?id=$1 [QSA,L]

RewriteRule ^article-([0-9]+)(.*)\.html$ article\.php\?id=$1 [QSA,L]

RewriteRule ^brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)\.html brand\.php\?id=$1&cat=$2&page=$3&sort=$4&order=$5 [QSA,L]

RewriteRule ^brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html brand\.php\?id=$1&cat=$2&page=$3 [QSA,L]

RewriteRule ^brand-([0-9]+)-c([0-9]+)(.*)\.html brand\.php\?id=$1&cat=$2 [QSA,L]

RewriteRule ^brand-([0-9]+)(.*)\.html brand\.php\?id=$1 [QSA,L]

RewriteRule ^tag-(.*)\.html search\.php\?keywords=$1 [QSA,L]

RewriteRule ^snatch-([0-9]+)\.html$ snatch\.php\?id=$1 [QSA,L]

RewriteRule ^group_buy-([0-9]+)\.html$ group_buy\.php\?act=view&id=$1 [QSA,L]

RewriteRule ^auction-([0-9]+)\.html$ auction\.php\?act=view&id=$1 [QSA,L]


-----------------------------常用的mvc框架------------------------------------

<IfModule mod_rewrite.c>

RewriteEngine on

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]

</IfModule>


-----------------------------phpcms------------------------------------

RewriteEngine On

RewriteBase /

RewriteRule ^(.*)content-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/index\.php\?m=content&c=index&a=show&catid=$2&id=$3&page=$4

RewriteRule ^(.*)show-([0-9]+)-([0-9]+)-([0-9]+).html$ $1/index\.php\?m=content&c=index&a=show&catid=$2&id=$3&page=$4

RewriteRule ^(.*)list-([0-9]+)-([0-9]+).html$ $1/index\.php\?m=content&c=index&a=lists&catid=$2&page=$3


-----------------------------phpwind------------------------------------

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} -s [OR]

RewriteCond %{REQUEST_FILENAME} -l [OR]

RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^.*$ - [NC,L]

RewriteRule !.(js|ico|gif|jpe?g|bmp|png|css)$ /index.php [NC,L]


-----------------------------thinkphp------------------------------------

<IfModule mod_rewrite.c>

RewriteEngine on

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^(.*)$ index.php?s=/$1 [QSA,PT,L]

</IfModule>



-----------------------------wordpress------------------------------------

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteRule ^index\.php$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

</IfModule>


-----------------------------zblog------------------------------------


<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

</IfModule>


----------------------------魔众系统------------------------------------

<IfModule mod_rewrite.c>

    <IfModule mod_negotiation.c>

        Options -MultiViews

    </IfModule>


    RewriteEngine On


    # Redirect Trailing Slashes If Not A Folder...

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule ^(.*)/$ /$1 [L,R=301]


    # Handle Front Controller...

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteRule ^ index.php [L]

</IfModule>


pvc塑胶亚麻地板 发表于 2020-12-25 15:09
https://www.dzlesd.com/seo/,,,老铁帮我看下,我这个咋回事,都设置过了
 楼主| han52036 发表于 2020-12-25 08:40
本帖最后由 han52036 于 2020-12-25 20:11 编辑

一楼站着,给你们做解答!

大部分都应该能访问了。网站的导航及很多内容都是随机拉取文本里面的,所以可以修改成你自己行业的内容,理论上内容越多越好。
下一步我的想法是页面改成正常的网站页面,然后刷新一次能将链接对应的页面保存下来,方便下次访问能静态拉取!这样对百度是不是更友好一点?还有内容属性更加集中一些。
987fw 发表于 2020-12-25 08:52
感谢楼主的分享
醉里逍遥 发表于 2020-12-25 08:53
虚拟机能用不
hnwang 发表于 2020-12-25 09:04
感谢分享 希望楼主以后能多多发些实操经验
cyzz1319 发表于 2020-12-25 09:15
大神求帮助 里面的文本文件里面的关键词用不用全删了?
 楼主| han52036 发表于 2020-12-25 09:22
cyzz1319 发表于 2020-12-25 09:15
大神求帮助 里面的文本文件里面的关键词用不用全删了?

不需要删除,可以新增你自己行业的关键词
 楼主| han52036 发表于 2020-12-25 09:23

环境是php5.2以上就行 应该,所以虚拟机可以使用
樱琅 发表于 2020-12-25 09:46
看样子最起码需要php,静态博客好像不能用
jccforever 发表于 2020-12-25 09:48
下载大神的开源程序及主程序  这两个文件是哪个?
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则 警告:本版块禁止灌水或回复与主题无关内容,违者重罚!

快速回复 收藏帖子 返回列表 搜索

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2021-10-20 18:26

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表