我如何才能隐藏.phpURL 地址中的扩展名,以便该地址:
http://www.thesite.com/somefile.php
Run Code Online (Sandbox Code Playgroud)
看起来像:
http://www.thesite.com/somefile
Run Code Online (Sandbox Code Playgroud)
无需使用该.htaccess文件。原因是因为我有很多目录,并且希望隐藏每个目录中所有这些文件的扩展名。我尝试将其设置expose_php为关闭,但仍然失败并出现错误 404。
我正在使用 PHP 5.3.10 和 Apache 服务器。
php ×1