Redirections via htaccess export are not working

  • Hi there, I’m trying to enable htaccess redirects instead of all in the RankMath plugin for performance reasons (I have nearly 1000).

    However, when I export to htaccess via RankMath’s “export to .htaccess” function and copy one simple rule over into my htaccess file, it doesn’t work. it returns a 404.

    RankMath exports using “RedirectRule … [R=301,L]” logic. But when I add that, it isn’t working. It’s worth noting that other RedirectRule rules (such as “RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L])” work fine, but none of the RankMath rules.

    However, when I convert that into a “Redirect 301 …” rule, it works fine. I’ll paste the actual specific rules used in Sensitive Data.

    Thank you for your help.

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this ticket.