【发布时间】:2014-04-04 06:05:20
【问题描述】:
我知道我可以使用
DirectoryIndex index.php products.php 用于默认文件。
但是,是否可以使用当前文件夹使其可变,所以它会是这样的:
DirectoryIndex CurrentFolderName.php
或附加一些文本,例如:
DirectoryIndex CurrentFolderName+123.php
所以这将使默认文件如下:
对于 www.mysite.com/products/ 它将是(products.php 或 products123.php)
对于 www.mysite.com/about-us/ 它将是(about-us.php 或 about-us123.php)
对于 www.mysite.com/service/ 它将是 (service.php 或 service123.php) .... 等等。
有可能吗?如果可能的话,它是否有任何性能副作用?
【问题讨论】: