[提问]
LINUX主机怎样用.htaccess设置默认首页.
|
|
按照论坛上找到的方法 我做了下面的.htaccess
<!--下面这些为Discuz论坛实现静态化的代码
RewriteEngine On
RewriteBase /
RewriteRule ^archiver/((fid|tid)-[\w\-]+\.html)$ archiver/index.php?$1
RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2
RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ viewthread.php?tid=$1&extra=page\%3D$3&page=$2
RewriteRule ^space-(username|uid)-(.+)\.html$ space.php?$1=$2
RewriteRule ^tag-(.+)\.html$ tag.php?name=$1
-->
DirectoryIndex thread-1-1-1.htm index.htm index.php
可现在打开网站后,默认首页还不是 thread-1-1-1.htm ,还是打开index.php 是不是那里有问题.
thread-1-1-1.htm 不存在这个实际文件. 应该是DZ的伪精态
网站:http://www.bjsuanming.cn/
如果我改成
Redirect index.asp http://www.bjsuanming.cn/thread-1-1-1.htm
可以转向吗
[ 本帖最后由 lijiong520 于 2009-11-29 04:01 PM 编辑 ] |
|
|
|
|
|
|
|
|
|
|
add.c
发表于 2009-11-30 09:16:22
|
显示全部楼层
不存在的文件怎么作首页 ,再说你搞那么奇怪的首页干嘛 |
|
|
|
|
|
|
|
|