目前我的.htaccess文件显示为:
DirectoryIndex dice.php
Dice.php是一个加载页面,在(index.php)中有一个iframe,最终加载完成时会破坏iframe并填充页面。但是它会在网址中将其填充为https://example.com/index.php。
我希望它填写为https://example.com/play。
有人有什么想法吗?
答案 0 :(得分:1)
尝试将此添加到.htaccess文件
RewriteEngine On # Turn on the rewriting engine
RewriteRule ^play/?$ index.php [NC,L]