Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Rewrite Rule to change & to %26 in URL

Discussion in 'General Discussion' started by hereiam, May 8, 2008.

  1. hereiam

    hereiam Member

    Joined:
    Oct 12, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    51
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice