0

I have added code in my htaccess to add trailing slash in my Magento 2.3.2 website URLs.

I want to exclude the pagination pages including questions to add a trailing slash.

For example - I have URL https://example.com/blog?p=2 which is redirecting to https://example.com/blog/?p=2.

I want to exclude these pages with "blog?p" to add a trailing slash.

Please provide a solution.

Thanks!!!

0

Try to do with .htaccess using 'rewrite condition'

RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R] # 
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.