.htaccess 重写模式中的多个变量

.htaccess 重写模式中的多个变量,.htaccess,mod-rewrite,.htaccess,Mod Rewrite,我是新加入rewrite mod的,我想做一些类似于当用户转到http:mysite.qqq/news/it/some_news1时的事情。真正的URL将是:http://mysite.qqq/index.php?s=news&d=it&I=some_news1。但我不知道该怎么做。我需要帮助 现在我有了.htaccess: RewriteEngine On RewriteRule ^([a-z_]*)/?$ index.php?s=$1 [QSA] 我想补充一些东西,比如: RewriteR

我是新加入rewrite mod的,我想做一些类似于当用户转到http:mysite.qqq/news/it/some_news1时的事情。真正的URL将是:http://mysite.qqq/index.php?s=news&d=it&I=some_news1。但我不知道该怎么做。我需要帮助

现在我有了.htaccess:

RewriteEngine On
RewriteRule ^([a-z_]*)/?$ index.php?s=$1 [QSA]
我想补充一些东西,比如:

RewriteRule ^([a-z_]*)/([a-z_]*)/([a-z0-9_]*)/?$ index.php?s=$1&d=$2&i=$3 [QSA]
但它不起作用

RewriteRule ^/(.+?)/(.+?)/(.+?) mysite.qqq/index.php?s=$1&d=$2&i=$3 [QSA]