Reputation: 1553
We have changed URL structure and I want to do the following:
User visits /p/Rounders/Rounders-84-Backstopping
301 Redirect to /Rounders/Rounders-84-Backstopping
However, we do have other URLs that this shouldn't affect, so it needs to check for /p/
present in the URL.
Any ideas for the .htaccess file?
Upvotes: 1
Views: 96
Reputation: 786091
You can use this rule as your very first rule:
RewriteRule ^p/(.+)$ /$1 [L,R=301,NC,NE]
Upvotes: 2