I host my wordpress on appfog but appfog doesn't allow wildcard subdomain yet. I decided to create an app on heroku and place the htaccess there, so any wildcard subdomain will rewrite to appfog.
How to make the URL sample-post.apps1.herokuapp.com/subtitle/... --> apps1.appfog.com/sample-post/subtitle/... using htaccess placed on heroku cedar?