Chinaunix

标题: 如何改链接? [打印本页]

作者: wzy9681    时间: 2003-01-15 10:29
标题: 如何改链接?
将主页index.html改为直接到openwebmail.pl
作者: 南非蜘蛛    时间: 2003-01-15 10:47
标题: 如何改链接?
[quote]原帖由 "wzy9681"]将主页index.html改为直接到openwebmail.pl[/quote 发表:

方法很多呀,加个跳转
或者你把mail的登陆界面加过来
作者: netloafer    时间: 2003-01-15 11:04
标题: 如何改链接?
或者直接改httpd.conf
作者: miling    时间: 2003-01-15 14:48
标题: 如何改链接?
比较实惠的是在index.html中的<head>;添加下面一行。
<meta http-equiv="refresh" content="0;URL=http://hostname/openwebmail.pl">;

当然,也可以通过在index.html中写个javascript,修改window.location或者将mod_rewrite编译进入apache,然后在httpd.conf中添加rewrite规则就可以了。
作者: 南非蜘蛛    时间: 2003-01-15 14:51
标题: 如何改链接?
原帖由 "miling" 发表:
比较实惠的是在index.html中的<head>;添加下面一行。
<meta http-equiv="refresh" content="0;URL=http://hostname/openwebmail.pl">;

当然,也可以通过在index.html中写个javascript,修改window.location或者将mod_rewrite编译进入apache,然后在httpd.conf中添加rewrite规则就可以了。

对,上面就是一个URL跳转
还有一个方法,就是做一个ln过去,但是不知道这样会不会有问题
作者: wzy9681    时间: 2003-01-16 14:01
标题: 如何改链接?
ln不行,我试过ln PATH/openwebmail.pl /PATH/index.html,浏览主页全是乱烘烘的txt文本
作者: wzy9681    时间: 2003-01-16 14:02
标题: 如何改链接?
[quote]原帖由 "netloafer"]或者直接改httpd.conf[/quote 发表:

改什么地方?
作者: 南非蜘蛛    时间: 2003-01-16 14:09
标题: 如何改链接?
[quote]原帖由 "wzy9681"]ln不行,我试过ln PATH/openwebmail.pl /PATH/index.html,浏览主页全是乱烘烘的txt文本[/quote 发表:

晕倒,当然不能这么ln了
你还是用页面跳转吧
作者: ec0131    时间: 2003-01-16 14:10
标题: 如何改链接?
原帖由 "wzy9681" 发表:

改什么地方?

DirectoryIndex 加上你的网页名看行不行
作者: 南非蜘蛛    时间: 2003-01-16 14:17
标题: 如何改链接?
看这里
http://chinaunix.net/forum/viewtopic.php?p=11597#11597
作者: 南非蜘蛛    时间: 2003-01-16 14:17
标题: 如何改链接?
看这里
http://chinaunix.net/forum/viewtopic.php?p=11597#11597
作者: wzy9681    时间: 2003-01-16 14:53
标题: 如何改链接?
非常感谢!太详细了,十分好啊




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2