Re: [users@httpd] Removing trailing slashes with query strings

2024-01-15 Thread Frank Gingras
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

[users@httpd] Removing trailing slashes with query strings

2024-01-15 Thread Dave Wreski
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