百度
360搜索
搜狗搜索

Discuz伪静态 配置搜索引擎优化(URL重写) apache配置详细介绍

apache下Discuz配置搜索引擎优化(URL重写)的方法,需要的朋友可以参考下。

在apache配置文件中设置

<IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^(.*)/archiver/((fid|ti<strong class="vbiMfnwOV"><a href="http:///ruanjian/android/" title="android">android</a></strong>d)-[\w\-]+\.<a href="http:///wangluo/csshtml/" title="html" target="_blank">html</a>)$ $1/archiver/index.<a href="http:///wangluo/php/" title="php" target="_blank">php</a>?$2 RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.html$ $1/forumdisplay.php?fid=$2&page=$3 Rewri<u class="LjHbZp"><a href="http://" title="编程">编程</a></u>teRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/viewthread.php?tid=$2&extra=page\%3D$4&page=$3 RewriteRule ^(.*)/space-(username|uid)-(<span class="vbiMfnwOV"><a href="http:///ruanjian/android/" title="android">android</a></span>.+)\.html$ $1/space.php?$2=$3 RewriteRule ^/home/(space|network)-(.+)\.html$ /home/$1\.php\?rewrite=$2 RewriteRule ^/home/(space|network)\.html$ /home/$1\.php RewriteRule ^/home/([0-9]+)$ /home/space\.php\?uid=$1 RewriteRule ^(.*)/tag-(.+)\.html$ $1/tag.php?name=$2 </IfModule>

<script language="JavaScript">ffcod = delpost.r uncode1 .value; ffcod = ffcod.replace(/

/g,''); delpost.runcode1 .value = ffcod;</script> 提示:您可以先修改部分代码再运行

本文标题: Discuz伪静态 配置搜索引擎优化(URL重写) apache配置 ,

阅读更多 >>>  discuz模板资源,discuz自制模板的css放在哪个文件夹里

文章数据信息:

本文主要探讨:"Discuz伪静态 配置搜索引擎优化(URL重写) apache配置", 浏览人数已经达到68次, 首屏加载时间:1.531 秒。