Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 url condo-search.co 并且它加载了一个空白页面,我想将它定向到 condo-search/en/index.php 我如何使用 htaccess 做到这一点?
你可以添加这个:
RedirectMatch 301 ^/$ /en/index.php
在文档根目录的 htaccess 文件中。或者,如果您希望它不进行外部重定向:
RewriteEngine On RewriteRule ^$ /en/index.php [L]