How to remove slash at the end of URL using .htaccess?

Started by SHADOW_FANTOM, Aug 28, 2022, 09:41 AM

Previous topic - Next topic

SHADOW_FANTOMTopic starter

I have a dle engine
How to remove slash at the end of URL using .htaccess?
What should be written there?
Tried everything, now it's different when I click on categories.
  •  

chandanthaver

try
RewriteCond %{HTTP_HOST} (.*)
RewriteCond %{REQUEST_URI} /$ [NC]
RewriteRule ^(.*)(/)$ $1 [L,R=301]

If it doesn't work, PM what you got in the file and website url.
  •