2011-03-21 35 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