这是我在.htaccess中的代码:
Options +FollowSymlinks
RewriteEngine on
RewriteBase /special/service
RewriteRule ^(.+)$ http://clients.example.com/aff.php?aff=$1&p=service.php [R,NC]
当我在运行FireBug时进行重定向时,我发现由于某种原因,它实际上是302重定向。我需要更改什么来解决这个问题?
答案 0 :(得分:0)
在你的旗帜中添加=301
:
Options +FollowSymlinks
RewriteEngine on
RewriteBase /special/service
RewriteRule ^(.+)$ http://clients.example.com/aff.php?aff=$1&p=service.php [R=301,NC]