• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Rewrite Rule to change & to %26 in URL

S

sonaul

Guest
Hello Friends,

Please help me get a Rewrite Rule to change & to %26 in URL. I have tried following scripts in .htaccess but was to no avail.

RewriteCond METHOD GET|HEAD
RewriteCond URL [^?]+&.*
RewriteHeader X-Redirect-Amp: .* 1

RewriteRule ([^?]+)&(.*) $1%26$2 [NS,I]

RewriteCond X-Redirect-Amp: 1
RewriteCond Host: (.*)
RewriteRule (.*) http\://$1$2 [I,RP]

2.
RewriteRule (.*)&(.*)\?(.*) $1%26$2\?$3 [I,NS]
RewriteRule ([^?]*)&([^?]*) $1%26$2 [I,NS]

3.
RewriteRule ([^?]+)&(.*) $1%26$2 [I,NS]

But was to no avail
 
Back
Top