Reputation: 3225
I have the following url:
I want my htaccess to redirect that to:
How can accomplish that?
Thanks!
Upvotes: 1
Views: 118
Reputation: 43673
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]
Upvotes: 1