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!!!

1 Answer 1

0

Try to do with .htaccess using 'rewrite condition'

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.