Re: [EMAIL PROTECTED] ServerAlias and redirecting, please help

2007-05-02 Thread Dmitry Hazin
Ok, I tried your method and it worked fine for me! I don't think that I need to spend much time debugging rewriterules so I will stay with it. Thanks in advance! 2007/5/2, Joshua Slive <[EMAIL PROTECTED]>: On 5/2/07, Dmitry Hazin <[EMAIL PROTECTED]> wrote: > Yes, that was my mistake. Anyway, wit

Re: [EMAIL PROTECTED] ServerAlias and redirecting, please help

2007-05-02 Thread Joshua Slive
On 5/2/07, Dmitry Hazin <[EMAIL PROTECTED]> wrote: Yes, that was my mistake. Anyway, without that line it didn't work too :( It seems that apache doesn't read RewriteRule directive after it had read ServerAlias one.. No, that's not true. As I said, if you want to debug mod_rewite you need to us

Re: [EMAIL PROTECTED] ServerAlias and redirecting, please help

2007-05-02 Thread Dmitry Hazin
Yes, that was my mistake. Anyway, without that line it didn't work too :( It seems that apache doesn't read RewriteRule directive after it had read ServerAlias one.. What do you mean "the technique of having two s"? We do have 2 virtualhosts: one for www.site.com and one for www.site.ru Do you sup

Re: [EMAIL PROTECTED] ServerAlias and redirecting, please help

2007-05-02 Thread Joshua Slive
On 5/2/07, Dmitry Hazin <[EMAIL PROTECTED]> wrote: I tried the following directives to force redirect: Well, I think the technique of having two s is clearer, but anyway... RewriteCond %{HTTP_HOST} ^xx\.site\.com [NC] RewriteCond %{HTTP_HOST} ^$ RewriteRule ^/(.*) http://www.site

Re: [EMAIL PROTECTED] ServerAlias and redirecting, please help

2007-05-01 Thread Dmitry Hazin
I tried the following directives to force redirect: RewriteCond %{HTTP_HOST} ^xx\.site\.com [NC] RewriteCond %{HTTP_HOST} ^$ RewriteRule ^/(.*) http://www.site.ru/some/location/$1 [L,R=301] But still no success; it opens the index page of the http://www.site.ru when typing 'xx.site.c

Re: [EMAIL PROTECTED] ServerAlias and redirecting, please help

2007-04-30 Thread Joshua Slive
On 4/30/07, Dmitry Hazin <[EMAIL PROTECTED]> wrote: What is the correct way to configure apache so it will redirect from xx.site.com to http://www.site.ru/some/location ? See: http://wiki.apache.org/httpd/Recipes/CanonicalHostNames Joshua.

[EMAIL PROTECTED] ServerAlias and redirecting, please help

2007-04-30 Thread Dmitry Hazin
Hi there, I searched for a while but couldn't point out what is the right way to do the following: We have the following virtualhost configuration: ... ServerName www.site.ru DocumentRoot /home/www/ru.site.www ServerAlias xx.site.com ... What I need is to redirect from http://x