的Apache2重写子文件夹和文件扩展名
答
在文档根目录的.htaccess,补充一点:
RewriteEngine on
RewriteRule ^pages/welcome/?$ /pages/welcome.php [L]
这将允许您访问的welcome.php文件不带扩展名。