Discuz伪静态 配置搜索引擎优化(URL重写) apache配置
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配置 ,