Thread
:
Rails Subdomain Caching
View Single Post
#
2
05-21-2009, 09:35 PM
mistwang
LiteSpeed Staff
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Just use the rewrite rule you would use for Apache.
extract subdomain from %{HTTP_HOST} with rewrite condition, then use %1, back reference to subdoamin as part of the destination url.
mistwang
View Public Profile
Send a private message to mistwang
Visit mistwang's homepage!
Find all posts by mistwang