• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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