您能帮我重写吗?
我有一个网站。 我网站上的网址如下:
https://example.com/category/first-category-name/
https://example.com/first-category-name/first-post-name/
我想要: 单击时,以下任何URL都会更改:使用GET参数作为前缀。
前缀为:https://example.com/love/out.php?s=80&u=
我尝试过:
RewriteCond%{http_host} ^ example.com $
RewriteRule ^(。*)$ https://example.com/love/out.php?s=80&u=https://example.com/ $ 1 [R = 301,L]
结果应为:
https://example.com/love/out.php?s=80&u=https://example.com/
https://example.com/love/out.php?s=80&u=https://example.com/category/first-category-name/
https://example.com/love/out.php?s=80&u=https://example.com/first-category-name/first-post-name/