Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian User (http://www.linux-archive.org/debian-user/)
-   -   .htaccess problem...please provide some hints. (http://www.linux-archive.org/debian-user/542190-htaccess-problem-please-provide-some-hints.html)

Lubos Rendek 06-21-2011 05:54 AM

.htaccess problem...please provide some hints.
 
Hi guys,

I'm unable to get the right redirection using .htaccess file. What I
have is this

URL http://example.com/?lang=ar&
or
http://example.com/?lang=ar&registration

and I would like this to be redirected to http://example.com/ .

In fact I would like to have all URL's which contain "lang=" to be
redirected to http://example.com .

any hints?

thank you

lubos


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: BANLkTi=hTXYJmbp=HSKTCdOb8c0Z127t_w@mail.gmail.com ">http://lists.debian.org/BANLkTi=hTXYJmbp=HSKTCdOb8c0Z127t_w@mail.gmail.com

Lubos Rendek 06-21-2011 07:11 AM

.htaccess problem...please provide some hints.
 
SOLVED:

If someone reads this post, here is how I solved my problem:

RewriteEngine On
RewriteCond %{QUERY_STRING} lang=
RewriteRule (.*) ? [R=302,L]

lubos

On Tue, Jun 21, 2011 at 3:54 PM, Lubos Rendek <lubosrendek@gmail.com> wrote:
> Hi guys,
>
> I'm unable to get the right redirection using .htaccess file. What I
> have is this
>
> URL http://example.com/?lang=ar&
> or
> http://example.com/?lang=ar&registration
>
> and I would like this to be redirected to http://example.com/ .
>
> In fact I would like to have all URL's which contain "lang=" to be
> redirected to http://example.com .
>
> any hints?
>
> thank you
>
> lubos
>



--
http://www.linuxconfig.org
http://jobs.linuxcareer.com


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: BANLkTinSLk_eSgEZmfdRMT6r6CbRePkm-A@mail.gmail.com">http://lists.debian.org/BANLkTinSLk_eSgEZmfdRMT6r6CbRePkm-A@mail.gmail.com


All times are GMT. The time now is 09:47 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.