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?
您可以将此规则用作第一条规则:
RewriteRule ^p/(.+)$ /$1 [L,R=301,NC,NE]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.