You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Carsten Wiedmann <ca...@gmx.de> on 2011/09/13 20:16:21 UTC

[users@httpd] Re: Best way to redirect within .htacces

Am 13.09.2011 19:03, schrieb atanaspich@mail.bg:
>
> Am 13.09.2011 15:50, schrieb Frank Gingras:
>>
>> Please see:
>> http://httpd.apache.org/docs/trunk/rewrite/remapping.html#canonicalhost

I guess you are using Apache 2.2 and not trunk (2.3 Beta), so better 
look at [1].


> I've already seen it, but unfortunetely I can't get the VirtualHost solution to work in .htaccess and I can't understand what's the problem.

"<VirtualHost>" can't be used in ".htaccess" files. See "Context" at 
[2]. So you have to use the mod_rewrite solution.

Regards,
Carsten


[1] http://httpd.apache.org/docs/2.2/rewrit/remapping.html#canonicalhost
[2] http://httpd.apache.org/docs/2.2/mod/core.html#virtualhost


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Re: Best way to redirect within .htacces

Posted by at...@mail.bg.
Thank you very much! :)

----- Carsten Wiedmann (carsten_sttgt@gmx.de), на 13.09.2011 в 21:16 -----
Please see:
http://httpd.apache.org/docs/trunk/rewrite/remapping.html#canonicalhost

I guess you are using Apache 2.2 and not trunk (2.3 Beta), so better 
look at [1].


I've already seen it, but unfortunetely I can't get the VirtualHost solution to work in .htaccess and I can't understand what's the problem.

"<VirtualHost>" can't be used in ".htaccess" files. See "Context" at 
[2]. So you have to use the mod_rewrite solution.

Regards,
Carsten



-------------------------------------
Mail.bg: Безплатен e-mail адрес. Най-добрите характеристики на българския пазар - 10 GB пощенска кутия, 20 MB прикрепен файл, безплатен POP3, мобилна версия, SMS известяване и други.