Results 1 to 1 of 1
  1. #1
    Join Date
    May 2005
    Location
    India
    Posts
    1

    * Rewrite Rule to change & to %26 in URL

    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
    Last edited by sonaul; 05-08-2008 at 12:47 PM. Reason: incomplete info was provided the last time

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •