【发布时间】:2010-09-27 02:38:45
【问题描述】:
假设我的网站中有一个名为“test”的主文件夹,其中包含一个 index.php 文件 www.example.com/test/index.php
我怎样才能使包含此路径“www.example.com/test”的任何 url 重定向到“www.example.com/test/index.php”并仍然保留第一个请求路径
例如:
www.example.com/test/User redirects to www.example.com/test/index.php
www.example.com/test/User/2 redirects to www.example.com/test/index.php
www.example.com/test/Account redirects to www.example.com/test/index.php
www.example.com/test/Account/5 redirects to www.example.com/test/index.php
【问题讨论】: