Portal Home > Knowledgebase > Articles Database > Lighttpd Rewrite - need help badly!


Lighttpd Rewrite - need help badly!




Posted by Gigaron, 12-23-2007, 09:56 PM
I need to accomplish: http://www.domain.com/sub/* ==> http://sub.domain.com/* however it should be proxied so that the user never sees http://sub.domain.com/ This is because the sub domain is using apache while www is using lighttpd and I want to keep the entire site with www to the user. Thanks

Posted by david510, 12-23-2007, 10:34 PM
Try the following rule.

Posted by Gigaron, 12-23-2007, 10:42 PM
This will redirect the whole site. I want it to be proxied so the user stays in www.domain.com. I read on the internet: http://www.webmasterworld.com/apache/3297088.htm rewriteRule ^([^.]+)\.jpg$ http://images.example.com/$1.jpg [P] However this is for Apache and I don't know how to do similar in Lighttpd. Thanks

Posted by Woooo, 01-02-2008, 02:01 PM
OMG Its another thread, I must post it in correct thread.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Help with mod_sec (Views: 573)
Apache2 error log huge (Views: 574)
NTWX Information (Views: 603)
narrowed down to two (Views: 613)