我的index.php
页面在流程results.php?token=0e635edc03
之后重定向到此类网址。
现在我想隐藏results.php
。所以只需:domain.com/0e635edc03
。
我需要.htaccess
规则吗?
我需要执行哪个.htaccess
规则?
感谢。
答案 0 :(得分:0)
尝试将此添加到文档根目录中的htaccess文件:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([0-9a-f]+)$ /results.php?token=$1 [L,NC]
现在您需要确保index.php文件重定向到domain.com/0e635edc03
而不是results.php网址。