【发布时间】:2020-05-07 08:37:06
【问题描述】:
我想默认加载index.php BUT,如果url中有call或call.php,它应该加载call.php文件: p>
默认网址(以下网址应加载 ROOT/index.php):
http://example.com/rgt-cfjv-vlm
http://example.com/index.php/rgt-cfjv-vlm
其他网址(以下网址应加载 ROOT/call.php):
http://example.com/call/rgt-cfjv-vlm
http://example.com/call.php/rgt-cfjv-vlm
注意“rgt-cfjv-vlm”是一个随机字符串,它总是会出现在 URL 中
任何帮助将不胜感激!谢谢。
【问题讨论】:
-
apache 别名(别名“/call”,后跟 Directory,您可以在其中将 DirectoryIndex 作为 call.php )也可以使用
-
@TranquillityI don't have access to apache setting bro
标签: php apache .htaccess mod-rewrite url-rewriting