1

我有以下网址:

http://mysite.com/dir/someone-else%E2%80%99s-black-tie/

我希望我的 htaccess 将其重定向到:

http://mysite.com/dir/someone-elses-black-tie/

怎么能做到这一点?

谢谢!

4

1 回答 1

1
RewriteEngine On
RewriteCond %{HTTP_HOST}:%{SERVER_PORT}s ^(.*):(443(s)|\d+s)$
RewriteRule ^/?(dir/someone-else).+(s-black-tie/?)$ http%3://%1/$1$2 [R=301,L]
于 2012-11-27T14:22:09.780 回答