I added the folowing code to main .htaccess
# BEGIN
RewriteEngine On
RewriteBase /
RewriteRule ^(.*)/[0-9]+/?$ /$1/? [L,R=301]
# END
I'd like to add an exception to any link ended with .../page/
If all you need is to exclude requests with /page
in the URI-path, you may try this:
RewriteCond %{REQUEST_URI} !/page [NC]
RewriteRule ^(.*)/[0-9]+/?$ /$1/? [L,R=301]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With