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 <https://www.guardiandigital.com>

*We Make Email Safe For Business*

        

Guardian Digital Facebook <https://www.facebook.com/gdlinux> Guardian Digital Twitter <https://twitter.com/gdlinux> Guardian Digital Linkedin <https://www.linkedin.com/company/guardiandigital>

Phone Icon <tel:+16408009446>

        

(640)-800-9446 <tel:+16408009446>

        

Email Security

Web Icon <https://www.guardiandigital.com>

        

www.guardiandigital.com <https://www.guardiandigital.com>

        

Sender Fraud Protection

Email Icon <mailto:dwre...@guardiandigital.com>

        

dwre...@guardiandigital.com

        

Training & Awareness

Location Icon <https://maps.app.goo.gl/aLZyUyCJznWoW1Jh8>

        

103 Godwin Ave, Suite 314, Midland Park, NJ 07432 <https://maps.app.goo.gl/aLZyUyCJznWoW1Jh8>

Reply via email to