Reputation: 65
I need redirect url like: www.domain.com/xx/yy/itinerar to www.domain.com/xx/yy. The value of yy can be various. I have
RewriteCond %{REQUEST_URI} (.*)itinerar
but i have trouble with RewriteRule.
Upvotes: 3
Views: 792
Reputation: 784888
You can use this redirect rule:
RewriteEngine On
RewriteRule ^(.*)/itinerar/?$ /$1 [L,NC,R=301]
Upvotes: 2