Re: Reg: Apache redirection rule

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

 



On Wed, Sep 9, 2009 at 3:58 AM, sravan kumar<sravankumar.j@xxxxxxxxx> wrote:
> Hello apache gurus,
>
> I have a special request,
>
> when client hits the url
>
> http://www.domain.com/signup.jsp?banner_s=off4&amp;rotation_s=off4
>
> He should get the redirection to  the url below.
>
>  http://www.domain.com/signup.jsp
>
>
> I tired to add ad rule
> RewriteRule /signup.jsp(.*)   http://www.domain.com/signup.jsp

In the above line you are only rewriting the URL in the server. If you
want it to also change in the browser address bar you need to do a
redirect. This means adding [R] to the rule. (See the documentation
for more details)

You should also be aware that the LHS of a RewriteRule is only matched
against the URL, not against the query string...

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