我想从 htaccess 获取所有数据我知道这是一种愚蠢的问题,但我只是想知道是否可以从 htaccess 规则列表中仅获取用户友好的链接
RewriteRule ^login$ common/login.php [L]
RewriteRule ^forgot-password$ common/forgotpassword.php [L]
RewriteRule ^page/(.*)$ common/page_content.php?pageslug=$1 [L]
RewriteRule ^activate/([a-zA-Z]+)/([0-9]+)/(.*)$ common/activate.php?type=$1&userid=$2&activationcode=$3 [L]
RewriteRule ^forgot-password$ common/forgotpassword.php [L]
我希望这些数据格式为
$data->array(); //is array
$data[0] = login common/login.php
$data[1] = forgotpassword common/forgotpassword.php or simlar to this
或者请建议我一些方法来获取我网站中的所有标签及其路径名我想基于 htaccess 动态构建我的站点地图