我想将 .php 扩展名更改为 .do only 主页。使用 xampp 服务器。
我不知道如何设置这种类型设置。
我想在 httpd.conf 文件中添加 index.do。并在重新启动 xampp 后。然后页面被排泄,但 php 代码不起作用。
问问题
1368 次
1 回答
0
`step 1 Open httpd.conf file.
step 2 add index.do
<IfModule dir_module>
DirectoryIndex index.do index.php index.pl index.cgi index.asp index.shtml index.html index.htm \
default.php default.pl default.cgi default.asp default.shtml default.html default.htm \
home.php home.pl home.cgi home.asp home.shtml home.html home.htm
</IfModule>
step 3: restart xampp
step 4: create .htaccess rule
AddTyp application/x-httpd-php .do
`
于 2018-09-04T12:13:05.583 回答