I have a wordpress website and I created logic in htacces so that all pages have a redirect to backslash ‘/’ at the end of the url. Posts, categories, tags, pages, everything
However, since the change I have not been able to save posts and pages, I need help so that I can maintain my rule and at the same time continue to be able to create, edit and publish pages and posts
Piece of code that is giving me conflicts:
RewriteEngine On RewriteCond %{REQUEST_URI} !.(jpg|jpeg|png|gif|bmp|ico|svg|mp4|webm|ogg|pdf|xml|txt)$ [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !^/$ RewriteRule ^(.*[^/])$ /$1/ [L,R=301]
When I remove “RewriteRule ^(.*[^/])$ /$1/ [L,R=301]” it works again, is there a way to continue with the rule without affecting the functioning of wordpress?