0

我有一个 url condo-search.co 并且它加载了一个空白页面,我想将它定向到 condo-search/en/index.php 我如何使用 htaccess 做到这一点?

4

1 回答 1

1

你可以添加这个:

RedirectMatch 301 ^/$ /en/index.php

在文档根目录的 htaccess 文件中。或者,如果您希望它不进行外部重定向:

RewriteEngine On
RewriteRule ^$ /en/index.php [L]
于 2013-11-06T15:00:10.930 回答