具有双参数的Apache RewriteRule

时间:2019-07-15 12:50:08

标签: apache .htaccess mod-rewrite

我需要输入以下网址:https://sito.mc/page_id.php?id=31&t=mission

以这种方式:https://sito.mc/mission.html

此规则将起作用:

RewriteEngine On
RewriteRule ^([^/]*)\.html$ /page_id.php?id=31&t=$1 [L]

问题在于ID参数不能固定,而是动态的。 因为页面从ID中获取其内容。 你有什么想法吗?

0 个答案:

没有答案
相关问题