On Mon, Jan 15, 2024 at 10:16 PM Dave Wreski
wrote:
> Hi,
>
> I have the following rule that works well to remove trailing slashes from
> URLs:
>
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule ^(.*)/$ $1 [R=301,L]
>
> This is done to prevent the non-slash URL from being treated as duplicate
Hi,
I have the following rule that works well to remove trailing slashes
from URLs:
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ $1 [R=301,L]
This is done to prevent the non-slash URL from being treated as
duplicate content with the URL with a slash.
The problem is that there ar