redirect到index.html.var

我的默认networking服务器是Apache,我在我的帐户上安装了节点并安装了Ghost平台。 节点在特定的端口上运行,因此我创build了一个.htaccess文件,将所有来自端口80的请求redirect到安装节点的端口。

问题是,在一台服务器上redirect工作正常,而在另一台服务器上,主页redirect到index.html.var可能是什么问题? 以下是我的.htaccess的代码

Options +FollowSymLinks -Indexes IndexIgnore * <IfModule mod_rewrite.c> RewriteEngine on # Simple URL redirect: RewriteRule ^(.*)$ http://mydomain.com:6366/$1 [P] </IfModule> 

请让我知道我错过了什么。

通过将DirectoryIndex添加到.htaccess文件解决了问题。

希望这有助于某人。