Re: Removing trailing slashes with query strings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




[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] redirect to https://webstage.example.com/administrator/sqlantern-joomla/php?cms_settings [REDIRECT/301]


Based on those log entries, the rewrite worked fine.

Perhaps you're dealing with DirectorySlash here.

Notice the last line redirected to itself, causing an infinite loop of redirects.

I don't think I'm involving the use of DirectorySlash or mod_dir, but that looks interesting. Perhaps I should be considering using that to strip off the trailing slash?

DirectorySlash Directive

Description: Toggle trailing slash redirects on or off
Syntax: DirectorySlash On|Off
Default: DirectorySlash On
Context: server config, virtual host, directory, .htaccess
Override: Indexes
Status: Base
Module: mod_dir

Thanks,
Dave




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux