Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[已解决] 【已解决】关于伪静态问题

[复制链接]
Thunderbird 发表于 2017-1-17 21:47:27 | 显示全部楼层 |阅读模式
本帖最后由 Thunderbird 于 2017-1-18 17:20 编辑

为什么我的其他地方伪静态都成功了,,就是首页的模块生成的链接是动态的奇怪了。麻烦大家帮我看下谢谢!
http://www.xmxing.com      这是首页,除了导航外都是动态链接,导航的链接是我手动加上去的。
其他地方,论坛、列表和内容页都是伪静态成功了,就首页好奇怪!

伪静态代码:
[ISAPI_Rewrite]

# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
RewriteRule ^(.*)/topic-(.+)\.html(\?(.*))*$ $1/portal\.php\?mod=topic&topic=$2&$4
RewriteRule ^(.*)/article-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/portal\.php\?mod=view&aid=$2&page=$3&$5
RewriteRule ^(.*)/forum-(\w+)-([0-9]+)(\?(.*))*$ $1/forum\.php\?mod=forumdisplay&fid=$2&page=$3&$5
RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/forum\.php\?mod=viewthread&tid=$2&extra=page\%3D$4&page=$3&$6
RewriteRule ^(.*)/group-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/forum\.php\?mod=group&fid=$2&page=$3&$5
RewriteRule ^(.*)/space-(username|uid)-(.+)\.html(\?(.*))*$ $1/home\.php\?mod=space&$2=$3&$5
RewriteRule ^(.*)/blog-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/home\.php\?mod=space&uid=$2&do=blog&id=$3&$5
RewriteRule ^(.*)/(fid|tid)-([0-9]+)\.html(\?(.*))*$ $1/index\.php\?action=$2&value=$3&$5

#Other plugins rules written in above

RewriteRule ^(.*)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html(\?(.*))*$ $1/plugin\.php\?id=$23&$5




民审大大 发表于 2017-1-17 22:00:20 | 显示全部楼层
链接格式不对,必须是 <a href=  这样
回复

使用道具 举报

 楼主| Thunderbird 发表于 2017-1-18 16:05:11 | 显示全部楼层
民审大大 发表于 2017-1-17 22:00
链接格式不对,必须是

这是模块代码,应该跟你说的链接格式一样的!

<div class="module cl xld" >
[loop]
<dl class="cl" style="width:760px; clear:both; margin-bottom:20px; height:160px;">
        <dd class="m" style="width:220px; height:150px; border:1px #E6E6E6 solid; text-align:center;"><a href="{url}"{target}><img src="{pic}" width="{picwidth}" height="{picheight}" alt="{title}" /></a></dd>
        <dt style="font-size:18px; font-weight:normal; margin-bottom:10px; color:#333;"><a href="{url}" {target}>{title}</a></dt>
  
        <dd style="height:30px; line-height:25px; color:#666; width:760px; font-size:14px;  word-break:break-all; margin-left:10px ">{summary}</dd>
   
    <dt style="height:30px; line-height:20px; font-weight:normal; font-size:12px; margin-top:40px;">
    <dl style="float:left; margin-right:10px;"><img src="{avatar}" height="20" width="20"></dl>
    <dl style="float:left;">作者:</dl>
    <dl style="float:left;margin-right:30px;"><a style="color:#ff9d00; height:20px; line-height:20px;" href="home.php?mod=space&uid={authorid}"{target}>{author}</a></dl>
    <dl style="float:left; margin-right:30px;">{lastpost}</dl>
    <dl style="background:url(template/win8mi_9th_technical/src/icon3.png) 0px 0px no-repeat; background-position:0px -778px;overflow:hidden; padding-left:20px;">{views}</dl>
    </dt>   
</dl>
[/loop]
</div>
回复

使用道具 举报

 楼主| Thunderbird 发表于 2017-1-18 17:18:13 | 显示全部楼层
民审大大 发表于 2017-1-17 22:00
链接格式不对,必须是

解决了,谢谢,是因为我的尾部代码少了<!--{eval output();}--> 这个
回复

使用道具 举报

jiangchuankyo 发表于 2017-1-18 17:24:14 | 显示全部楼层
<a href="{url}" {target}>
你这模板作者偷懒写的有问题吧:
你手动改成:
<a href="thread-{tid}-1-1.html" {target}>
他的{tid}参数变量用的什么来写的前面找一下替换成正确的
回复

使用道具 举报

 楼主| Thunderbird 发表于 2017-1-18 17:29:41 | 显示全部楼层
jiangchuankyo 发表于 2017-1-18 17:24
你这模板作者偷懒写的有问题吧:
你手动改成:

不用了,哈哈,已经解决了,是因为尾部少了一句输出代码导致的!
回复

使用道具 举报

hhb121 发表于 2017-1-18 22:42:49 | 显示全部楼层
其实吧,有的时候模块 如果里面的连接不是  <a href= 那么也会导致伪静态失效的。同时 <a  href= 一样失效。你底部的代码是会影响到伪静态,但是确未必一定要有。
回复

使用道具 举报

 楼主| Thunderbird 发表于 2017-3-21 14:37:36 | 显示全部楼层
hhb121 发表于 2017-1-18 22:42
其实吧,有的时候模块 如果里面的连接不是

不知道,反正有了就正常了,哈哈!我是代码小白
回复

使用道具 举报

慢慢的爱恋 发表于 2017-4-11 15:04:20 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

慢慢的爱恋 发表于 2017-4-11 16:02:24 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-6-18 01:22 , Processed in 0.108029 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表