本站所有内容仅限用于学习和研究目的,如有侵权请邮件与我们联系处理!
世上事本无难易,为之则易!

网站首页 站群教程 站群答疑 正文

火端搜索泛链接程序伪静态规则

曹操 2020-02-24 站群答疑 3239 ℃ 0 评论 8970字 free 收藏

聚合搜索站群程序大多出自火端搜索程序,所以我们一定要了解原始程序的使用方式,才能刚好的使用各种二开版本。

今天曹操SEO网站分享给大家火端搜索泛目录站群设置伪静态的方法。

本教程适用于:《火端搜素V2.1原始程序》,《聚合搜索站群热点新闻版本

火端搜索泛链接程序伪静态规则-第1张图片

后台伪静态设置

火端搜索程序2.0版伪静态全新调整了,更简单的规则,后台随时自定义伪静态规则,不用再手动修改文件。目录格式还是.html后缀模式有你决定!

例如:

/k/关键词后台应设置 k/{q} 和 k/{q}/{p}

/关键词.html 后台应设置 {q}.html  和 {q}_{p}.html

/s/关键词.html 后台应设置 s/{q}.html 和 s/{q}_{p}.html

还可以吧“关键词”base64转码,例如:

/5YWz6ZSu6KN.html    后台应设置 {qe}.html {qe}_{p}.html

简单设置伪静态的方法

1、如果你的环境是Apache

请直接移动程序里伪静态文件夹下的.htaccess文件到根目录来

2、如果你的环境是IIS7.5或者以上版本

请直接移动程序里伪静态文件夹下的.htaccess文件和web.config到根目录来

3、如果你的环境是Nginx

请复制程序里伪静态文件夹下的nginx.txt文件里面的内容到站点配置文件里,然后重启Nginx。如下图:

4、如果你的环境是IIS6.0

请复制程序里伪静态文件夹下的.htaccess文件和httpd.ini到根目录来,由于IIS6下伪静态组件不一样,不一定支持,建议不要使用Win2003+IIS6这种已经淘汰的环境了。

在后台设置伪静态规则的时候,建议使用“/”或者“_”这两个字符来分割,不要用其它特殊字符,以免冲突出错

2.X的程序里已经包含了伪静态规则

Nginx伪静态规则

以下是2.X版的伪静态规则:

Nginx版:
  if (!-e $request_filename) {
                rewrite /(.*) /index.php?rewrite=$1  last;
    }

Nginx版(放“so”子目录):

  if (!-e $request_filename) {
                rewrite /so/(.*) /so/index.php?rewrite=$1  last;
    }

请注意:如果设置伪静态后搜索中文乱码,请在规则RewriteRule ^(.*)$ /index.php?rewrite=$1后面加上 [QSA,NU,PT,L]

Apache伪静态规则

Apache版(.htaccess文件)

RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php?rewrite=$1

Apache版(放“so”子目录)

RewriteEngine On
    RewriteBase /so/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /so/index.php?rewrite=$1

IIS版伪静态规则

IIS版,IIS6.0下的httpd.ini伪静态就没有那么灵活了

  [ISAPI_Rewrite]
    CacheClockRate 3600
    RepeatLimit 32
    RewriteRule ^/sitemap/$ /index\.php\?rewrite=sitemap/
    RewriteRule ^/sitemap/(.*).html$ /index\.php\?rewrite=sitemap/$1.html
    RewriteRule ^/k/(.*)/(.*)$ /\?q=$1&p=$2
    RewriteRule ^/k/(.*)$ /\?q=$1

IIS版(放“so”子目录)

[ISAPI_Rewrite]
    CacheClockRate 3600
    RepeatLimit 32
    RewriteRule ^/so/sitemap/$ /so/index\.php\?rewrite=sitemap/
    RewriteRule ^/so/sitemap/(.*).html$ /so/index\.php\?rewrite=sitemap/$1.html
    RewriteRule ^/so/k/(.*)/(.*)$ /so/\?q=$1&p=$2
    RewriteRule ^/so/k/(.*)$ /so/\?q=$1

IIS7/IIS7.5 web.config规则

  <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
             <system.webServer>
             <security>
               <requestFiltering allowDoubleEscaping="true"></requestFiltering>
                </security>
                <rewrite>
             <rules>
              <rule name="OrgPage" stopProcessing="true">
             <match url="^(.*)$"/>
             <conditions logicalGrouping="MatchAll">
             <add input="{HTTP_HOST}" pattern="^(.*)$"/>
             <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
             <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
             </conditions>
             <action type="Rewrite" url="index.php?rewrite={R:1}"/>
              </rule>
             </rules>
           </rewrite>
             </system.webServer>
    </configuration>

如果是在so/目录

<?xml version="1.0" encoding="UTF-8"?>
    <configuration>
             <system.webServer>
                <defaultDocument>
                   <files>
                     <clear />
                     <add value="index.php" />
                   </files>
                 </defaultDocument>
             <security>
               <requestFiltering allowDoubleEscaping="true"></requestFiltering>
                </security>
                <rewrite>
             <rules>
              <rule name="OrgPage" stopProcessing="true">
             <match url="^so/(.*)$"/>
             <conditions logicalGrouping="MatchAll">
             <add input="{HTTP_HOST}" pattern="^so/(.*)$"/>
             <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
             <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
             </conditions>
             <action type="Rewrite" url="so/index.php?rewrite={R:1}"/>
              </rule>
             </rules>
           </rewrite>
             </system.webServer>
    </configuration>
目录导航
  • 后台伪静态设置
  • 简单设置伪静态的方法
  • Nginx伪静态规则
  • Apache伪静态规则
  • IIS版伪静态规则

  • Tags:聚合搜索泛目录目录站群

    必看说明

    • 本站中所有被研究的素材与信息全部来源于互联网,版权争议与本站无关。
    • 本站文章或仅为文本内容原创,非程序原创。如有侵权、不妥之处,请联系站长第一时间删除。敬请谅解!
    • 本站所有内容严格遵守国家法律的条例,所有研究的算法技术均来源于搜索引擎公开默认允许用户研究使用的接口。
    • 阅读本文及获取资源前,请确保您已充分阅读并理解《访问曹操SEO网站需知:行为准则》。
    • 本站分享的任何工具、程序仅供学习参考编写架构,仅可在本地的虚拟机内断网测试,严禁联网运行或上传搭建!
    • 任何资源必须在下载后24个小时内,从电脑中彻底删除。不得传播或者用于其他任何用途!否则一切后果用户自负!
    • 转载请注明 : 文章转载自  曹操SEO 火端搜索泛链接程序伪静态规则
    • 本文标题:《火端搜索泛链接程序伪静态规则》
    • 本文链接:https://www.ccooc.cn/687.html

    本文暂时没有评论,来添加一个吧(●'◡'●)

    欢迎 发表评论:

    网站分类
    近期评论
    文章归档
    标签列表
    站点信息
    • 文章总数:2017
    • 页面总数:7
    • 分类总数:46
    • 标签总数:339
    • 评论总数:8850
    • 浏览总数:5142710