2011-03-21 63 views
0

我刚刚为我的网站设置了一个子域名。使用htaccess无法使用的子域

我的问题是: 当我去http://xyz.site.com我没有看到任何东西。只有“链接似乎被破坏”。 但是当我去http://xyz.site.com/index.html所有的工作正常。

的问题是在.htaccess:

Options +FollowSymlinks 
RewriteEngine on 
RewriteBase/

RewriteRule ^([a-z0-9]+)/?$ profile.php?id=$1 [NC] 

如果我评论的重写规则是否能够正常工作。

我该如何修复htaccess?也许用RewriteCond?

谢谢。

回答

0

如果我是你,我将在.htaccess中设置一个默认页面。

DirectoryIndex index.html