Hello I am facing a very little problem, when i browse site without trailing slash it works fine but when i add trailing slash in the end it redirect me to 404 page
e.g.
mysite.com/category/slug-name/page/3/
mysite.com/category/slug-name/page/5/
works fine but when i click page 1 it that has a trailing slash i.e.
mysite.com/category/slug-name/
it gives error but without trailing slash it works fine for me
Similarly on articles page when i access without trailing slash it works but when i add trailing slash in the end, It redirects me to 404 page e.g. when i access this URL it works fine
mysite.com/123-article-slug-here
but in this case I got 404 error
mysite.com/123-article-slug-here/
I am sure that there is a problem in my htaccess but know how to fix it
RewriteEngine On RewriteRule ^category/([a-zA-Z0-9-/]+)/page/(.+)/?$ category.php?id=$1&page=$2 [NC,L] RewriteRule ^category/([a-zA-Z0-9-/]+)/?$ category.php?id=$1 [L] RewriteRule ^([a-zA-Z0-9-/]+)/?$ article.php?url=$1