why Redirect not working when path contains a symbol

admin

Administrator
Staff member
we have a wordpress website.
our plugine is rankmath.
our webserver is litespeed.
I want to redirect a link with symbol to another link.
for example:
<div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override">
Code:
 &lt;div class='gf_browser_chrome gform_wrapper' id='gform_wrapper_6' &gt;&lt;form method='post' enctype='multipart/form-data'  id='gform_6'  action='/software-single/?singlesoft=5'&gt;
                        &lt;div class='gform_body'&gt;&lt;ul id='gform_fields_6' class='gform_fields top_label form_sublabel_below description_below'&gt;&lt;li id='field_6_1'  class='gfield field_sublabel_below field_description_below gfield_visibility_visible' &gt;&lt;label class='gfield_label' for='input_6_1' &gt;&lt;/label&gt;&lt;div class='ginput_container ginput_container_text'&gt;&lt;input name='input_1' id='input_6_1' type='text' value='' class='large'    placeholder='09123456789'  aria-invalid="false" /&gt;&lt;/div&gt;&lt;/li&gt;
                            &lt;/ul&gt;&lt;/div&gt;
</div>
</div>

site.com/link?text to site.com/link2
i had use rankmath plugine and htaccsses for working this redirect.
but it's not working.
what can I do?