自动秒收录设置伪静态还是不行

文章分类:技术工单

发布时间:2020-12-04 04:07:33

发布者:158****7461

自动秒收录设置伪静态还是不行
点击上面的网站。还是显示自已的网站。不显示别人网站的资料。
炫视网络客服 时间:2020-12-04 04:07:08

回复:

虚拟空间主机 IIS 环境 : (复制以下规则保存为 web.config   上传根目录

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="已导入的规则 1_rewrite">
<match ignoreCase="false" url="^links/([1-9]+[0-9]*).html$"/>
<action appendQueryString="false" type="Rewrite" url="links-.php?id={R:1}"/>
</rule>
<rule name="已导入的规则 3_rewrite">
<match ignoreCase="false" url="^so-(.*?).html$"/>
<conditions>
<add ignoreCase="false" input="{QUERY_STRING}" pattern="^(.*)$"/>
</conditions>
<action appendQueryString="false" type="Rewrite" url="dada/search.php?text={R:1}"/>
</rule>
<rule name="已导入的规则 4_rewrite">
<match ignoreCase="false" url="^so.html$"/>
<conditions>
<add ignoreCase="false" input="{QUERY_STRING}" pattern="^(.*)$"/>
</conditions>
<action type="Rewrite" url="dada/search.php"/>
</rule>
<rule name="已导入的规则 9_rewrite">
<match ignoreCase="false" url="^favicon/(.*?).ico$"/>
<conditions>
<add ignoreCase="false" input="{QUERY_STRING}" pattern="^(.*)$"/>
</conditions>
<action type="Rewrite" url="dada/ico2.php?ico={R:1}"/>
</rule>
<rule name="已导入的规则 8_rewrite">
<match ignoreCase="false" url="^news-([a-zA-Z0-9_.-]*).html$"/>
<action appendQueryString="false" type="Rewrite" url="news.php?article={R:1}"/>
</rule>
<rule name="已导入的规则 10_rewrite">
<match ignoreCase="false" url="^sitemap.xml"/>
<conditions>
<add ignoreCase="false" input="{QUERY_STRING}" pattern="^(.*)$"/>
</conditions>
<action appendQueryString="false" type="Rewrite" url="dada/sitemap.php"/>
</rule>
<rule name="已导入的规则 245_rewrite">
<match ignoreCase="false" url="^img/([1-9]+[0-9]*).jpg$"/>
<conditions>
<add ignoreCase="false" input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
<add ignoreCase="false" input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add ignoreCase="false" input="{QUERY_STRING}" pattern="^(.*)$"/>
</conditions>
<action appendQueryString="false" type="Rewrite" url="templets/timg.gif"/>
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>


宝塔IIS环境规则:网站 > 设置 > 复制以下伪规则 > 保存

<?xml version="1.0" ?>
<rules>
<rule name="已导入的规则 1_rewrite">
<match ignoreCase="false" url="^links/([1-9]+[0-9]*).html$"/>
<action appendQueryString="false" type="Rewrite" url="links-.php?id={R:1}"/>
</rule>
<rule name="已导入的规则 3_rewrite">
<match ignoreCase="false" url="^so-(.*?).html$"/>
<conditions>
<add ignoreCase="false" input="{QUERY_STRING}" pattern="^(.*)$"/>
</conditions>
<action appendQueryString="false" type="Rewrite" url="dada/search.php?text={R:1}"/>
</rule>
<rule name="已导入的规则 4_rewrite">
<match ignoreCase="false" url="^so.html$"/>
<conditions>
<add ignoreCase="false" input="{QUERY_STRING}" pattern="^(.*)$"/>
</conditions>
<action type="Rewrite" url="dada/search.php"/>
</rule>
<rule name="已导入的规则 9_rewrite">
<match ignoreCase="false" url="^favicon/(.*?).ico$"/>
<conditions>
<add ignoreCase="false" input="{QUERY_STRING}" pattern="^(.*)$"/>
</conditions>
<action type="Rewrite" url="dada/ico2.php?ico={R:1}"/>
</rule>
<rule name="已导入的规则 8_rewrite">
<match ignoreCase="false" url="^news-([a-zA-Z0-9_.-]*).html$"/>
<action appendQueryString="false" type="Rewrite" url="news.php?article={R:1}"/>
</rule>
<rule name="已导入的规则 10_rewrite">
<match ignoreCase="false" url="^sitemap.xml"/>
<conditions>
<add ignoreCase="false" input="{QUERY_STRING}" pattern="^(.*)$"/>
</conditions>
<action appendQueryString="false" type="Rewrite" url="dada/sitemap.php"/>
</rule>
<rule name="已导入的规则 245_rewrite">
<match ignoreCase="false" url="^img/([1-9]+[0-9]*).jpg$"/>
<conditions>
<add ignoreCase="false" input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
<add ignoreCase="false" input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add ignoreCase="false" input="{QUERY_STRING}" pattern="^(.*)$"/>
</conditions>
<action appendQueryString="false" type="Rewrite" url="templets/timg.gif"/>
</rule>
</rules>


nginx环境: (复制以下规则保存为 nginx.ini   上传根目录)

# nginx configuration by winginx.com

location / {
  if (!-e $request_filename){
    rewrite ^/links/([1-9]+[0-9]*).html$ /links-.php?id=$1;
  }
  if (!-e $request_filename){
    rewrite ^/news-([1-9]+[0-9]*).html$ /news.php?article=$1;
  }
  
    if (!-e $request_filename){
    rewrite ^/img/([1-9]+[0-9]*).jpg$ /templets/timg.gif;
  }
  
    if ($query_string ~ "^(.*)$"){
    rewrite ^/sitemap.xml$ /dada/sitemap.php;
  }
  
  if (!-e $request_filename){
    rewrite ^/so-(.*?).html$ /dada/search.php?text=$1;
  }
  if ($query_string ~ "^(.*)$"){
    rewrite ^/so.html$ /dada/search.php;
  }
  if ($http_host ~* "^zdmsl.com$"){
    rewrite ^(.*)$ http://www.zdmsl.com/$1 redirect;
  }
}

Apache 环境:(复制以下规则保存为 .htaccess   上传根目录)

RewriteEngine on
RewriteRule ^link/(.*)$ /links/$1 [R=301,L]
RewriteRule ^search-(.*)$ /so-$1 [R=301,L]
RewriteRule ^search.html(.*)$ /so.html$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^links/([1-9]+[0-9]*).html$ links-.php?id=$1
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^news-([1-9]+[0-9]*).html$ news.php?article=$1
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^img/([1-9]+[0-9]*).jpg$ /templets/timg.gif
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^so-(.*?).html$ /dada/search.php?text=$1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^so.html$ /dada/search.php
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^sitemap.xml$ /dada/sitemap.php

正版程序授权

万能SEO模板

本站自主开发

自动内容原创

主动搜索提交

正规整站排名