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 <[EMAIL PROTECTED]> 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
>
>
>
>

Reply via email to