关于GISS [技术论坛 - 模块定制]

正在浏览:   1 名游客


 到底部   前一个主题   下一个主题  [无发表权] 请登录或者注册



关于GISS
新进会员
注册日期:
2004/10/18 19:10
所属群组:
注册会员
帖子: 17
等级: 2; EXP: 86
HP : 0 / 46
MP : 5 / 217
离线
关于GISS中的


apache mod_rewrite 内容
:

RewriteRule /modules/giss/index.html$ /modules/giss/index.php 
RewriteRule 
/modules/giss/viewforum_(.*).html$ /modules/giss/viewforum.php?f=$
RewriteRule 
/modules/giss/viewtopic_(.*).html$ /modules/giss/viewtopic.php?t=$
RewriteRule 
/modules/giss/viewtopic_post(.*)-(.*)-(.*)-(.*)-(.*).html$ /modules/giss/viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$
RewriteRule 
/modules/giss/viewtopic_o(.*).htm#(.*)$ /modules/giss/viewtopic.php?p=$1#$1 
RewriteRule /modules/giss/n-(.*).html$ /modules/giss/search.php?search_id=$
RewriteRule 
/modules/giss/ego-(.*).html$ /modules/giss/search.php?search_id=$
RewriteRule 
/modules/giss/u-(.*).html$ /modules/giss/search.php?search_id=$
RewriteRule 
/modules/giss/index_(.*).html$ /modules/giss/index.php?c=$1


怎么设呀???

2005/5/30 21:33
应用扩展 工具箱


Re: 关于GISS
高级会员
注册日期:
2004/11/25 22:59
所属群组:
注册会员
帖子: 110
等级: 9; EXP: 50
HP : 0 / 212
MP : 36 / 927
离线
到 Apache 的安装目录,
例如: C:\Program Files\Apache Group\Apache2\conf

打开文件: httpd.conf

引文:

如果原先没有设置虚拟主机:

拷贝下面的内容到 httd.conf 里


RewriteEngine On 
RewriteLogLevel 0
RewriteRule 
/modules/giss/index.html$ /modules/giss/index.php 
RewriteRule 
/modules/giss/viewforum_(.*).html$ /modules/giss/viewforum.php?f=$
RewriteRule 
/modules/giss/viewtopic_(.*).html$ /modules/giss/viewtopic.php?t=$
RewriteRule 
/modules/giss/viewtopic_post(.*)-(.*)-(.*)-(.*)-(.*).html$ /modules/giss/viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$
RewriteRule 
/modules/giss/viewtopic_o(.*).htm#(.*)$ /modules/giss/viewtopic.php?p=$1#$1 
RewriteRule /modules/giss/n-(.*).html$ /modules/giss/search.php?search_id=$
RewriteRule 
/modules/giss/ego-(.*).html$ /modules/giss/search.php?search_id=$
RewriteRule 
/modules/giss/u-(.*).html$ /modules/giss/search.php?search_id=$
RewriteRule 
/modules/giss/index_(.*).html$ /modules/giss/index.php?c=$1



引文:

如果原先已设置虚拟主机:


<VirtualHost *:*>
代码
</VirtualHost>

把下面的内容复制到里面:

RewriteEngine On 
RewriteLogLevel 0
RewriteRule 
/modules/giss/index.html$ /modules/giss/index.php 
RewriteRule 
/modules/giss/viewforum_(.*).html$ /modules/giss/viewforum.php?f=$
RewriteRule 
/modules/giss/viewtopic_(.*).html$ /modules/giss/viewtopic.php?t=$
RewriteRule 
/modules/giss/viewtopic_post(.*)-(.*)-(.*)-(.*)-(.*).html$ /modules/giss/viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$
RewriteRule 
/modules/giss/viewtopic_o(.*).htm#(.*)$ /modules/giss/viewtopic.php?p=$1#$1 
RewriteRule /modules/giss/n-(.*).html$ /modules/giss/search.php?search_id=$
RewriteRule 
/modules/giss/ego-(.*).html$ /modules/giss/search.php?search_id=$
RewriteRule 
/modules/giss/u-(.*).html$ /modules/giss/search.php?search_id=$
RewriteRule 
/modules/giss/index_(.*).html$ /modules/giss/index.php?c=$1


例:

<VirtualHost *:*>
RewriteEngine On 
RewriteLogLevel 0
RewriteRule 
/modules/giss/index.html$ /modules/giss/index.php 
RewriteRule 
/modules/giss/viewforum_(.*).html$ /modules/giss/viewforum.php?f=$
RewriteRule 
/modules/giss/viewtopic_(.*).html$ /modules/giss/viewtopic.php?t=$
RewriteRule 
/modules/giss/viewtopic_post(.*)-(.*)-(.*)-(.*)-(.*).html$ /modules/giss/viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$
RewriteRule 
/modules/giss/viewtopic_o(.*).htm#(.*)$ /modules/giss/viewtopic.php?p=$1#$1 
RewriteRule /modules/giss/n-(.*).html$ /modules/giss/search.php?search_id=$
RewriteRule 
/modules/giss/ego-(.*).html$ /modules/giss/search.php?search_id=$
RewriteRule 
/modules/giss/u-(.*).html$ /modules/giss/search.php?search_id=$
RewriteRule 
/modules/giss/index_(.*).html$ /modules/giss/index.php?c=$1
</VirtualHost>


2005/5/31 9:04
_________________
绿色学院 - Green Institute
应用扩展 工具箱



 回顶部   前一个主题   下一个主题

 [无发表权] 请登录或者注册


可以查看帖子.
不可发帖.
不可回复.
不可编辑自己的帖子.
不可删除自己的帖子.
不可发起投票调查.
不可在投票调查中投票.
不可上传附件.
不可不经审核直接发帖.

[高级搜索]