所以我有以下.htaccess,它工作得很好,除了我不能使用用户的电子邮件地址,因为它包含点(使用在线工具生成一些行)。与此同时,我只是将.
替换为_
,但我会更乐意知道如何允许点数。 (是的,我看到了一些关于此事的其他问题,但我不知道如何在我的.htaccess中更改它)
网址格式如下
mywebsite.com/tkn/{somerandomstring}/{mail}
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
... Some other rules...
RewriteRule ^tkn/([^/]*)/([^/]*)\.php$ /reset?tkn=$1&mail=$2 [L]
提前致谢。