Re: redirect with query string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 2, 2008 at 22:39, charlycr74@xxxxxxxxxxxx
<charlycr74@xxxxxxxxxxxx> wrote:
> Hi Stephen,
>
> I have to rewrite the full URL.
>
> If I go to: http://www.domain.com/abc/def/abcd.asp?abc=123&def=456&ghi=135
> I have to be redirected to: http://www.domain.com/xzy/uvw/abc/xyz.asp?cba=000&zyx=111


RewriteCond  %{QUERY_STRING} abc=123&def=456&ghi=135
RewriteRule /abc/def/abcd.asp
http://www.domain.com/xzy/uvw/abc/xyz.asp?cba=000&zyx=111 [R]

But maybe this is not what you want. however until you tell us what
you want I can't give you anyhting more.

Krist




-- 
krist.vanbesien@xxxxxxxxx
krist@xxxxxxxxxxxxx
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux