Re: lighttpd redirect rules

2010-07-19 Thread Camaleón
On Mon, 19 Jul 2010 17:00:51 +0800, nzsell wrote: i was able to redirect in apache, but now i switched over to lighttpd server. I would like to ask how do I redirect The following http://abc123.example.com to http://www.example.com/pages/page.php?u=abc123 thanks in advance Does this

Re: lighttpd redirect rules

2010-07-19 Thread nzsell
doesn't help much. I've read that before, but still can't figure out. On Mon, 19 Jul 2010 17:00:51 +0800, nzsell wrote: i was able to redirect in apache, but now i switched over to lighttpd server. I would like to ask how do I redirect The following http://abc123.example.com to

Re: lighttpd redirect rules

2010-07-19 Thread Camaleón
On Mon, 19 Jul 2010 17:50:29 +0800, nzsell wrote: Does this help? http://redmine.lighttpd.net/projects/lighttpd/wiki/HowToRedirectWww doesn't help much. I've read that before, but still can't figure out. Uh. You mean this is not working for you? *** $HTTP[host] == abc123.example.com {

Re: lighttpd redirect rules

2010-07-19 Thread vinboy
Thanks for the reply. But it's not quite what I'm looking for. The abc123 is a variable. I'm looking for a rule that redirect this: http://abc123.example.com to http://www.example.com/pages/page.php?u=abc123 http://111.example.com to http://www.example.com/pages/page.php?u=111

Re: lighttpd redirect rules

2010-07-19 Thread Camaleón
On Mon, 19 Jul 2010 19:00:58 +0800, vinboy wrote: Thanks for the reply. But it's not quite what I'm looking for. The abc123 is a variable. Oh. And you thought people should have guess that abc123 was a variable value without further notice ;-) I'm looking for a rule that redirect this:

Re: lighttpd redirect rules

2010-07-19 Thread V
Making them static is bad. The Apache .htaccess is as follow, can you translate them to lighttpd? RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. RewriteCond %{HTTP_HOST} ^(.+)\.example\.com RewriteRule ^(.*) http://www.example.com/pages/page.php?u=%1 [R=301,L] On Mon, 19 Jul 2010 19:00:58

Re: lighttpd redirect rules

2010-07-19 Thread Eduardo M KALINOWSKI
On Seg, 19 Jul 2010, V wrote: Making them static is bad. The Apache .htaccess is as follow, can you translate them to lighttpd? RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. RewriteCond %{HTTP_HOST} ^(.+)\.example\.com RewriteRule ^(.*) http://www.example.com/pages/page.php?u=%1 [R=301,L]