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

2024-01-16 Thread Frank Gingras
On Tue, Jan 16, 2024 at 3:33 PM Dave Wreski wrote: > Hi, > On 1/16/24 3:03 PM, Dave Wreski wrote: > > > [Tue Jan 16 08:55:13.289205 2024] [rewrite:trace1] [pid 904886:tid 904938] >> mod_rewrite.c(493): [client 68.111.193.42:0] 68.195.193.42 - - [ >>

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

2024-01-16 Thread Dave Wreski
Hi, On 1/16/24 3:03 PM, Dave Wreski wrote: [Tue Jan 16 08:55:13.289205 2024] [rewrite:trace1] [pid 904886:tid 904938] mod_rewrite.c(493): [client 68.111.193.42:0 ] 68.195.193.42 - - [webstage.example.com/sid#560ba7f01a68][rid#7f2b1c0bc210/initial

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

2024-01-16 Thread Dave Wreski
[Tue Jan 16 08:55:13.289205 2024] [rewrite:trace1] [pid 904886:tid 904938] mod_rewrite.c(493): [client 68.111.193.42:0 ] 68.195.193.42 - - [webstage.example.com/sid#560ba7f01a68][rid#7f2b1c0bc210/initial

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

2024-01-16 Thread Frank Gingras
On Tue, Jan 16, 2024 at 9:30 AM 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

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

2024-01-16 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.