Re: mod_rewrite?

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

 



On Mon, Sep 19, 2011 at 2:51 PM, topinambour #### <otpinambour@xxxxxxxxx> wrote:
Hi

I have some problems about
to write rewriterule in .htaccess
I use spip and URL_propre

URL read by google as :
#URL_site/#URL_ARTICLE?page=fr
i would want to use to remove:?lang=fr and do :
/#URL_SITE/#URL_ARTICLE

Summary, it would be :
http://monsite.org/-Description-?lang=fr
to redirect to
http://monsite.org/-Description-

I write :
RewriteRule  ^\?lang=fr$    ^[^\.]$ [L,R=302]   
nothing do

any ideas please

Something like this maybe?

RewriteRule  ^(.*)\?lang=fr$ $1 [L,R=302]


--
Jens-Harald Johansen
--
There are 10 kinds of people in the world: Those who understand binary and
those who don't...

[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