Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下网址:
http://mysite.com/dir/someone-else%E2%80%99s-black-tie/
我希望我的 htaccess 将其重定向到:
http://mysite.com/dir/someone-elses-black-tie/
怎么能做到这一点?
谢谢!
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]