Mod rewrite 使用.htaccess重写和重定向url

Mod rewrite 使用.htaccess重写和重定向url,mod-rewrite,url-redirection,Mod Rewrite,Url Redirection,我一直在尝试将动态生成的URL重写为静态URL。例如,我在执行.htaccess命令后获得此URL: 重写的URL: 而实际URL为: 为此,我使用以下命令: RewriteEngine On RewriteRule ^top/([^/]*)-best-quotes$ /quotes/great-best-quotations.php?topic=$1 [L] 我的代码在上面的代码中运行得非常好,但我想重定向对的所有请求 /quotes/great-best-quotations.php?to

我一直在尝试将动态生成的URL重写为静态URL。例如,我在执行
.htaccess
命令后获得此URL:

重写的URL:

而实际URL为:

为此,我使用以下命令:

RewriteEngine On
RewriteRule ^top/([^/]*)-best-quotes$ /quotes/great-best-quotations.php?topic=$1 [L]
我的代码在上面的代码中运行得非常好,但我想重定向对的所有请求

/quotes/great-best-quotations.php?topic=Love  
到新重写的URL

/top/Love-best-quotes. 
有人能给我指路吗