You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by K R <kp...@gmail.com> on 2016/04/08 20:35:17 UTC
[users@httpd] url forwarding
All,
I have a need to setup a redirect for around 3000 pages which are in below
format
http://myhost.com/index?page=content&topic=TVAR&popular=HOT-TOPIC -->
http://myhost.com/index?page=content&topic=TVAR
and here TVAR can be any string ( we have now around 500 different key
e.g ALW , CAW,NYN,FLN )
Is there a way to do get this done on apache .
appreciate any suggestion.
thanks in advance
Regards
Re: [users@httpd] url forwarding
Posted by Christopher Schultz <ch...@christopherschultz.net>.
K,
On 4/8/16 5:02 PM, K R wrote:
> The source url has " &popular=HOT-TOPIC
> <http://myhost.com/index?page=content&topic=TVAR&popular=HOT-TOPIC> "
>
> http://myhost.com/index?page=content&topic=TVAR&popular=HOT-TOPIC
>
> how do i remove " &popular=HOT-TOPIC
> <http://myhost.com/index?page=content&topic=TVAR&popular=HOT-TOPIC> "
> on the redirect
You can use mod_rewrite to do just about anything. You can even mutate
the URL such that you don't even need to redirect the request.
Hope that helps,
-chris
> On Fri, Apr 8, 2016 at 11:57 AM, Christopher Schultz
> <chris@christopherschultz.net <ma...@christopherschultz.net>> wrote:
>
> K,
>
> On 4/8/16 2:35 PM, K R wrote:
>> I have a need to setup a redirect for around 3000 pages which are
>> in below format
>
>> http://myhost.com/index?page=content&topic=TVAR&popular=HOT-TOPIC
>> --> http://myhost.com/index?page=content&topic=TVAR
>
>> and here TVAR can be any string ( we have now around 500
>> different key e.g ALW , CAW,NYN,FLN )
>
>> Is there a way to do get this done on apache .
>
> Those URLs look the same to me if you ignore the "popular" URL
> parameter. There is no mapping required at all. What am I missing?
>
> -chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> <ma...@httpd.apache.org>
> For additional commands, e-mail: users-help@httpd.apache.org
> <ma...@httpd.apache.org>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] url forwarding
Posted by K R <kp...@gmail.com>.
The source url has " &popular=HOT-TOPIC
<http://myhost.com/index?page=content&topic=TVAR&popular=HOT-TOPIC> "
http://myhost.com/index?page=content&topic=TVAR&popular=HOT-TOPIC
how do i remove " &popular=HOT-TOPIC
<http://myhost.com/index?page=content&topic=TVAR&popular=HOT-TOPIC> " on
the redirect
On Fri, Apr 8, 2016 at 11:57 AM, Christopher Schultz <
chris@christopherschultz.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> K,
>
> On 4/8/16 2:35 PM, K R wrote:
> > I have a need to setup a redirect for around 3000 pages which are
> > in below format
> >
> > http://myhost.com/index?page=content&topic=TVAR&popular=HOT-TOPIC
> > --> http://myhost.com/index?page=content&topic=TVAR
> >
> > and here TVAR can be any string ( we have now around 500
> > different key e.g ALW , CAW,NYN,FLN )
> >
> > Is there a way to do get this done on apache .
>
> Those URLs look the same to me if you ignore the "popular" URL
> parameter. There is no mapping required at all. What am I missing?
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iEYEARECAAYFAlcH/zIACgkQ9CaO5/Lv0PB9rwCfVaR/veYSJ+W3toRy/v/r83VQ
> L0EAoJI0eK+3IToK/IphXWeC1R5ltU6i
> =kttx
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
Re: [users@httpd] url forwarding
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
K,
On 4/8/16 2:35 PM, K R wrote:
> I have a need to setup a redirect for around 3000 pages which are
> in below format
>
> http://myhost.com/index?page=content&topic=TVAR&popular=HOT-TOPIC
> --> http://myhost.com/index?page=content&topic=TVAR
>
> and here TVAR can be any string ( we have now around 500
> different key e.g ALW , CAW,NYN,FLN )
>
> Is there a way to do get this done on apache .
Those URLs look the same to me if you ignore the "popular" URL
parameter. There is no mapping required at all. What am I missing?
- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlcH/zIACgkQ9CaO5/Lv0PB9rwCfVaR/veYSJ+W3toRy/v/r83VQ
L0EAoJI0eK+3IToK/IphXWeC1R5ltU6i
=kttx
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org