You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jacky <ja...@webnic.cc> on 2006/11/27 10:17:22 UTC

[users@httpd] i18n url rewriting

Dear all,

I have a virtual host like this:

<VirtualHost *:8888>
   RewriteEngine on
   RewriteCond %{SERVER_PORT}   ^8888$
   RewriteCond %{HTTP_HOST}   ^xn--eqrt2guv0afw3b\.hk$
   RewriteRule ^/(.*)         http://testwww.hkdnr.hk/$1 [L,R]

   DocumentRoot /www/srs/registrant
   ServerName testwww.hkdnr.hk
   DirectoryIndex index.html
</VirtualHost>

I'm wondering why it does not rewrite to http://testwww.hkdnr.hk when i 
browse to http://xn--eqrt2guv0afw3b.hk:8888/

Any advice?
Thanks.

-- 
Warm regards,
Jacky Wong


---------------------------------------------------------------------
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] i18n url rewriting

Posted by Nick Kew <ni...@webthing.com>.
On Mon, 27 Nov 2006 17:17:22 +0800
Jacky <ja...@webnic.cc> wrote:

> <VirtualHost *:8888>

>    ServerName testwww.hkdnr.hk

> </VirtualHost>
> 
> I'm wondering why it does not rewrite to http://testwww.hkdnr.hk when
> i browse to http://xn--eqrt2guv0afw3b.hk:8888/

It's a virtual host for something else.

-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

---------------------------------------------------------------------
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