lighttpd forum lighty > Rewrite and redirect order

Posted by Fernando Silva (Guest)
on 19.04.2006 14:59
Hi everyone

After implementing the url.redirect in a way that all requests made to 
"domain.com" go to "www.domain.com", I've found a little problem.

I also use the mod_rewrite (I'm using Drupal) to transform "clean" URLs 
into "php". The problem is that when I go to "domain.com" and it 
redirects to "www.domain.com" it also rewrites the URL and what it gives 
me is "www.domain.com/index.php?q="
I tried to change the redirect/rewrite modules order, but it does not 
had any effect.

The objective is to redirect a OLD url to the NEW, and then being in the 
new it will apply the rewrite.

Any ideas?

Thanks in advance,
  Fernando Silva
Posted by Christian Hoffmann
on 23.12.2006 19:44
Hi,
as a workaround I'd put the rewrite code into a $HTTP["host"] !~ 
"^www\." { } section -- then it should work...

(I know, this thread is old, but the topic was just discussed on IRC 
with a reference to this post)
Posted by Rax (Guest)
on 12.10.2008 07:55
is it possible to make videos opened i new tab, auto-paused? ,
Posted by Anke (Guest)
on 12.10.2008 08:48
and help to promote their ,