use*_*235 2 redirect apache-2.2
我的默认网络服务器是 Apache,我已经在我的帐户上安装了 node 并安装了 Ghost 平台。Node 在特定端口上运行,因此我创建了一个 .htaccess 文件,将所有请求从端口 80 重定向到安装 Node 的端口。
问题是,在一台服务器上,重定向工作完美,而在另一台服务器上,主页重定向到 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>
Run Code Online (Sandbox Code Playgroud)
请让我知道我错过了什么。