han52036 发表于 2020-12-25 08:39

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

本帖最后由 han52036 于 2020-12-25 11:28 编辑

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

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

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





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



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

因为大神第一次发出来,我就进行了解密并上线,再次声明并不是不尊重作者,是的确因为我自己也是小白,然后不管怎么搞 都提示那句,肯本打不开程序,没办法~~ 然后就发现程序有报错,可能是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是我的目录名称,对应你们自己修改)
RewriteEngine On
RewriteBase /seo/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1

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


整体部署的流程:


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


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


好了。注意好运!



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


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

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

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





jbmir 发表于 2020-12-25 10:37

本帖最后由 jbmir 于 2020-12-25 12:43 编辑

把以下对应的规则复制至.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/(+)-(+)-(+)\.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/({6})/?(+)?/?$" /index.php?action=article&setdate=$1&page=$2 last;

rewrite ^/page/(+)?/?$ /index.php?action=article&page=$1 last;

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

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

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

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

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

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

rewrite ^/rss/(+)?/?$ /rss.php?cid=$1 last;

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

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

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

rewrite sitemap.xml sitemap.php last;

rewrite ^(.*)/(+)/?(+)?/?$ $1/index.php?action=show&alias=$2&page=$3 last;

}


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


location / {

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

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

      }


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


location / {

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

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

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

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

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

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

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

}


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


location / {

if (!-e $request_filename) {

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

break;

}

}


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


location /{

if (!-e $request_filename) {

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

   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(+)\.xml$" /feed.php?cat=$1 last;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

rewrite "^/exchange-(+)(.*)\.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-(+)-(+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3 last;

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

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

rewrite ^([^\.]*)/group-(+)-(+)\.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-(+)-(+)\.html$ $1/home.php?mod=space&uid=$2&do=blog&id=$3 last;

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

rewrite ^([^\.]*)/(+*)-(+)\.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-(+)-(+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3 last;

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

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

rewrite ^([^\.]*)/group-(+)-(+)\.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-(+)-(+)\.html$ $1/home.php?mod=space&uid=$2&do=blog&id=$3 last;

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

rewrite ^([^\.]*)/(+*)-(+)\.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-(+)-(+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3 last;

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

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

rewrite ^([^\.]*)/group-(+)-(+)\.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-(+)-(+)\.html$ $1/home.php?mod=space&uid=$2&do=blog&id=$3 last;

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

rewrite ^([^\.]*)/(+*)-(+)\.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-(+)-(+)\.html$ /forumdisplay.php?fid=$1&page=$2 last;

            rewrite ^/thread-(+)-(+)-(+)\.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-(+)\.html$" /plus/list.php?tid=$1 last;

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

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

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

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

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

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

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

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

rewrite "^/tag-(+)-(+)\.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

</IfModule>

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

RewriteEngine On

RewriteBase /

RewriteRule ^(+).(+)/$ e/action/ShowInfo.php?classid=$1&id=$2

RewriteRule ^(+).(+)$ $1.$2/

RewriteRule ^(+)/$ e/action/ListInfo/?classid=$1

RewriteRule ^(+)$ $1/

RewriteRule ^list(+).(+)/$ e/action/ListInfo/index.php?page=$1&classid=$2

RewriteRule ^list(+).(+)$ list$1.$2/

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

RewriteRule^archive(+).(+)-(+)-(+)$^archive(+).(+)-(+)-(+)/


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

RewriteEngine On

RewriteBase /

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

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

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

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

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

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

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

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

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

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

RewriteRule ^(.*)view-(+)-(+).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-(+)-(+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

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

RewriteCond %{QUERY_STRING} ^(.*)$

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

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^group-(+)-(+)\.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 ^(+)-(.+)\.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-(+)-(+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

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

RewriteCond %{QUERY_STRING} ^(.*)$

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

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^group-(+)-(+)\.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-(+)-(+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

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

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^(+*)-(+)\.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-(+)-(+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

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

RewriteCond %{QUERY_STRING} ^(.*)$

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

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^group-(+)-(+)\.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-(+)-(+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

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

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^(+*)-(+)\.html$ plugin.php?id=$1:$2&%1


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

RewriteEngine On

RewriteBase /

# direct one-word access

RewriteRule ^index\.html$ index\.php

RewriteRule ^category$ index\.php

# access any object by its numeric identifier

RewriteRule ^feed-c(+)\.xml$ feed\.php\?cat=$1

RewriteRule ^feed-b(+)\.xml$ feed\.php\?brand=$1

RewriteRule ^feed\.xml$ feed\.php

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

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

RewriteRule ^category-(+)-b(+)-(+)-(.+)-(+)(.*)\.html$ category\.php\?id=$1&brand=$2&page=$3&sort=$4&order=$5

RewriteRule ^category-(+)-b(+)-(+)(.*)\.html$ category\.php\?id=$1&brand=$2&page=$3

RewriteRule ^category-(+)-b(+)(.*)\.html$ category\.php\?id=$1&brand=$2

RewriteRule ^category-(+)(.*)\.html$ category\.php\?id=$1

RewriteRule ^goods-(+)(.*)\.html$ goods\.php\?id=$1

RewriteRule ^article_cat-(+)-(+)-(.+)-(+)(.*)\.html$ article_cat\.php\?id=$1&page=$2&sort=$3&order=$4

RewriteRule ^article_cat-(+)-(+)(.*)\.html$ article_cat\.php\?id=$1&page=$2

RewriteRule ^article_cat-(+)(.*)\.html$ article_cat\.php\?id=$1

RewriteRule ^article-(+)(.*)\.html$ article\.php\?id=$1

RewriteRule ^brand-(+)-c(+)-(+)-(.+)-(+)\.html brand\.php\?id=$1&cat=$2&page=$3&sort=$4&order=$5

RewriteRule ^brand-(+)-c(+)-(+)(.*)\.html brand\.php\?id=$1&cat=$2&page=$3

RewriteRule ^brand-(+)-c(+)(.*)\.html brand\.php\?id=$1&cat=$2

RewriteRule ^brand-(+)(.*)\.html brand\.php\?id=$1

RewriteRule ^tag-(.*)\.html search\.php\?keywords=$1

RewriteRule ^snatch-(+)\.html$ snatch\.php\?id=$1

RewriteRule ^group_buy-(+)\.html$ group_buy\.php\?act=view&id=$1

RewriteRule ^auction-(+)\.html$ auction\.php\?act=view&id=$1


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

<IfModule mod_rewrite.c>

RewriteEngine on

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME} !-f

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

</IfModule>


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

RewriteEngine On

RewriteBase /

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

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

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


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

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} -s

RewriteCond %{REQUEST_FILENAME} -l

RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^.*$ -

RewriteRule !.(js|ico|gif|jpe?g|bmp|png|css)$ /index.php


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

<IfModule mod_rewrite.c>

RewriteEngine on

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^(.*)$ index.php?s=/$1

</IfModule>



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

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteRule ^index\.php$ -

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php

</IfModule>


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


<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php

</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


    # Handle Front Controller...

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteRule ^ index.php

</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

醉里逍遥 发表于 2020-12-25 08:53
虚拟机能用不

环境是php5.2以上就行 应该,所以虚拟机可以使用

樱琅 发表于 2020-12-25 09:46

看样子最起码需要php,静态博客好像不能用

jccforever 发表于 2020-12-25 09:48

下载大神的开源程序及主程序这两个文件是哪个?
页: [1] 2 3 4 5 6 7 8 9 10
查看完整版本: 【非原创】关于司徒浩大神发布的SEO优化程序的几点分享和感谢