While redirecting to link url dosen’t gets encoded.
Redirecting to – baseurl/lampfishtrapl/h:66_mbs-1122707503.html?amp=amp=<script%20src%3D%2F%2Flocalhost%2Fj60RDBXWh>
On link hover it displays – baseurl/lampfishtrapl/h:66_mbs-1122707503.html?amp=%3Cscript%20src%3D%2F%2Flocalhost%2Fj60RDBXWh%3E
Please suggest how to redirect with encoded characters and how to apply it in .htaccess file.