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

 找回密码
 立即注册
搜索

[疑问] 帮忙!SS DZ伪静态后出现不通调用地址?

[复制链接]
恭喜你 发表于 2009-9-12 15:30:11 | 显示全部楼层 |阅读模式
SS开启静态后为什么有的有静态地址
这样:
html/45/n-45.html
还有这样的链接
viewnews-25
一个页面内会出现两种链接方式。。

调用论坛数据出现三种:
1 。 html/00/t-100.html
2。viewthread-75
3.viewthread.php?tid=201

论坛那边都静态,没问题 SS就这样呢
谁知道咋个意思。
回复

使用道具 举报

999test.cn 发表于 2009-9-12 15:34:56 | 显示全部楼层
怎么写的调用?
回复

使用道具 举报

 楼主| 恭喜你 发表于 2009-9-12 15:38:56 | 显示全部楼层
<!--{block name="spacenews" parameter="grade/1/catid/1/order/i.dateline DESC/limit/0,8/cachetime/900/subjectlen/30/messagelen/100/cachename/vartopNews/tpl/data"}-->
                       
<ul class="top_newsu2">
<!--{loop $_SBLOCK['vartopNews'] $value}-->
<li >·<a href="$value[url]" title="$value[subjectall]" class="tx_red" target="_blank"><span class="fontcolorsize142">$value[subject]</span></a></li>
<!--{/loop}-->
</ul>
这个调用出现了两种链接方式:html/45/n-45.html 和 viewnews-25
后边的地址是无法访问的。不明白为什么
回复

使用道具 举报

 楼主| 恭喜你 发表于 2009-9-12 16:20:16 | 显示全部楼层
没人知道吗 ?
回复

使用道具 举报

littlehz 发表于 2009-9-12 16:28:50 | 显示全部楼层
生成HTML静态和Rewrite伪静态不能同时开启。
在网站访问量不大的情况下不建议开启HTML静态
回复

使用道具 举报

 楼主| 恭喜你 发表于 2009-9-12 17:12:09 | 显示全部楼层
RewriteRule ^([0-9]+)/spacelist(.+)$ index.php?uid/$1/action/spacelist/type$2 [L]
RewriteRule ^([0-9]+)/viewspace(.+)$ index.php?uid/$1/action/viewspace/itemid$2 [L]
RewriteRule ^([0-9]+)/viewbbs(.+)$ index.php?uid/$1/action/viewbbs/tid$2 [L]
RewriteRule ^([0-9]+)/(.*)$ index.php?uid/$1/$2 [L]
RewriteRule ^([0-9]+)$ index.php?uid/$1 [L]

RewriteRule ^action(.+)$ index.php?action$1 [L]
RewriteRule ^category(.+)$ index.php?action/category/catid$1 [L]
RewriteRule ^viewnews(.+)$ index.php?action/viewnews/itemid$1 [L]
RewriteRule ^viewthread(.+)$ index.php?action/viewthread/tid$1 [L]
RewriteRule ^mygroup(.+)$ index.php?action/mygroup/gid$1 [L]

这个事 伪静态的规则,http://localhost/viewthread-75  把中间的问号弄没了呢。
正确的应该是 http://localhost/?viewthread-75  这样才能访问
回复

使用道具 举报

fengmayi 发表于 2009-9-12 17:27:48 | 显示全部楼层
那是你服务器不支持伪静态,后台选择简短通用模式即可
回复

使用道具 举报

littlehz 发表于 2009-9-12 21:39:17 | 显示全部楼层
本帖最后由 littlehz 于 2009-9-12 21:40 编辑

http://localhost/viewthread-75这个就是正常的伪静态Rewrite的URL,请看官方网站的示例http://x.discuz.net/viewthread-75

1 。 html/00/t-100.html , 开启HTML静态的URL
2。viewthread-75, Rewrite伪静态的URL
3.viewthread.php?tid=201, 通用的URL

HTML静态和Rewrite伪静态不能同时开。
如果Rewrite的地址不能正常访问,请检查规则是否正确以及服务器是否支持Rewrite
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-13 15:02 , Processed in 0.086815 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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