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

2011-09-16 Thread Matus UHLAR - fantomas

- francois.ging...@gmail.com -
http://httpd.apache.org/docs/trunk/rewrite/remapping.html#canonicalhost


On 13.09.11 17:03, atanasp...@mail.bg wrote:
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.


you need different virtual host with different documentroot, and put 
you Redirect directive there.


I prefer using special modules for this, like redirtoservname or 
common_redirect.


Unfortunately anything like UseCanonicalName force wasn't implemented 
in apache yet.


--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
They say when you play that M$ CD backward you can hear satanic messages.
That's nothing. If you play it forward it will install Windows.

-
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-unsubscr...@httpd.apache.org
 from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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

2011-09-13 Thread atanaspich
Hi, guys!
What is the best way to redirect from the non-www domain to the www domain 
within .htaccess (I don't have access to the server config)? In the Apache 
documentation it says that is best to use the VirtualHost directive, but is it 
allowed in the .htaccess file?
Thanks in advance!

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

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

2011-09-13 Thread Frank Gingras



On 09/13/2011 04:57 AM, atanasp...@mail.bg wrote:

Hi, guys!
What is the best way to redirect from the non-www domain to the www
domain within .htaccess (I don't have access to the server config)? In
the Apache documentation it says that is best to use the VirtualHost
directive, but is it allowed in the .htaccess file?
Thanks in advance!

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


Please see:

http://httpd.apache.org/docs/trunk/rewrite/remapping.html#canonicalhost

Frank


-
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-unsubscr...@httpd.apache.org
 from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



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

2011-09-13 Thread atanaspich
Hello!
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.

- francois.ging...@gmail.com -

Please see:
http://httpd.apache.org/docs/trunk/rewrite/remapping.html#canonicalhost

Frank





-

Сега е по-лесно да получиш най-добрата куриерска услуга на 
телефон *3456(*DHL6)
 http://www.dhl.bg/bg.html