Re: Removing single question mark?

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

 



Hi, I should add that I wrote the following to remove an errant question mark from the end of another URL, but it doesn't appear to work for the homepage.

RewriteCond %{THE_REQUEST} /features\? [NC]
RewriteRule ^ %{REQUEST_URI} [L,R=302,NE,QSD]

Thanks,
Dave

On 6/20/24 7:01 PM, Dave Wreski wrote:

Hi,

I have another challenging rewrite rule request, please. I'm trying to remove a single question mark from a URL:

https://example.com/?

I've tried the following:

RewriteRule ^/\?$ / [L,R=301,QSD]
RewriteRule ^/\? /? [L,R=301]

RewriteCond %{REQUEST_URI} ^$
RewriteRule ^ /? [L,R=301,QSD]

But it seems to ignore all of them. Ideas greatly appreciated.

Thanks,
Dave


--

Profile Photo

Dave Wreski

Chief Executive Officer

Guardian Digital Logo

We Make Email Safe For Business

Guardian Digital Facebook Guardian Digital Twitter Guardian Digital Linkedin

Phone Icon

(640)-800-9446

Email Security

Web Icon

www.guardiandigital.com

Sender Fraud Protection

Email Icon

dwreski@xxxxxxxxxxxxxxxxxxx

Training & Awareness

Location Icon

103 Godwin Ave, Suite 314, Midland Park, NJ 07432


[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