.htaccess重写所有字符

arm*_*and 2 regex .htaccess mod-rewrite url-rewriting

我需要什么模式来重写请求的URL中的所有字符?我试过了:

RewriteRule ^([a-z\-_0-9]+)/([^/.]+)$ index.php?engine=$1&q=$2 [NC,L]
Run Code Online (Sandbox Code Playgroud)

但这些点.没有得到认可.

sci*_*tai 10

(.*)将匹配所有字符.这就是你所需要的.