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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[求助] 模版静态规则问题

[复制链接]
s369577530 发表于 2010-10-8 15:11:46 | 显示全部楼层 |阅读模式
修改模版 里的 url规则
动态规则:[url=http://域名/space.php?do=mtag&tagid=$value[tagid]http://域名/space.php?do=mtag&tagid=$value[tagid[/url]] 这样的
修改静态地址这样的 :http://域名/space-20257-do-thread-id-132.html
修改模版 [url=http://域名/space-{$value[uid]}-do-thread-id-{$value[tid]}.html]http://域名/space-{$value[uid]}-do-thread-id-{$value[tid]}.html[/url]

输出来之后变量都成了编码形式
http://域名/space-%7B20257%7D-do-thread-id-%7B132%7D.html

求怎么解决~ 在线急等~
 楼主| s369577530 发表于 2010-10-8 15:21:15 | 显示全部楼层
回复

使用道具 举报

 楼主| s369577530 发表于 2010-10-8 16:11:29 | 显示全部楼层
回复

使用道具 举报

1753103 发表于 2010-10-9 10:54:21 | 显示全部楼层
我用的
RewriteEngine On
RewriteBase /
RewriteRule ^(space|network)\-(.+)\.html$ $1.php?rewrite=$2 [L]
RewriteRule ^(space|network)\.html$ $1.php [L]
RewriteRule ^([0-9]+)$ space.php?uid=$1 [L]
回复

使用道具 举报

 楼主| s369577530 发表于 2010-10-9 15:14:43 | 显示全部楼层
回复 1753103 的帖子

解决了 模版改成
http://域名/space-$value[uid] -do-thread-id-$value[tid].html
这样就是 虽然 uid后面跟个%20 无大碍 可以访问
就是js 调用的时候 还是动态的 怎么更新缓存都不行
回复

使用道具 举报

aqq_cc 发表于 2010-10-10 20:20:42 | 显示全部楼层
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-10-7 00:15 , Processed in 0.125838 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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