Re: rewriterule help

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

 



You could try something like that

RewriteEngine On

RewriteCond %{HTTP_HOST} demo.mysite.com [NC]
RewriteCond %{QUERY_STRING} .*logout=1.* [NC]

RewriteRule ^/.* http://www.mysite.com [L,R=302]

--
Bj

On 9/12/07, Aziz Sasmaz < aziz.sasmaz@xxxxxxxxxxxxx> wrote:


Hi all,

I want to write a rule. When visitors logs out from our demo site i dont want them to to see demo sites index page. I want to reidirect them to the original site using rewriterules..

For example  when apache sees the site

http://demo.mysite.com/srv/home?logout=1     It has to  redirect it to   http://www.mysite.com

I tried possible rewrite configurations but it didn't work.

Could you send a few recomendations?

Thank you

AS





[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