-
Hello, i’m trying to translate my .htaccess redirection in rankmath plugin.
Here the current .htaccess that work well:
RewriteCond %{QUERY_STRING} ^keywords=(.*)
RewriteRule ^(events|spot|shops|classes)/?$ /explore?type=$1&keywords=%1 [R=301,L]
And here what i’m putting in rank math:
Regex: \/(events|spot|shops|classes)\/?\?keywords=(.*)
Destination: /explore?type=$1&keywords=$2I have tried different regex like:
^(events|spot|shops|classes)\/\?keywords=(.*)
^(events|spot|shops|classes)\/?\?keywords=(.*)But they doesn’t work either
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The ticket ‘Redirection with regex doesn’t work’ is closed to new replies.