Forum Moderators: phranque
I have been trying for hours to get this right and unfortunatly, event after reading all the RewriteCond and RewriteRule I cannot make it :-(
I put a blog into /home/mydomain/blogs
My server works with subdomains as I can ping this.host.does.not.exist.mydomain.com.
Lets take an example with user tweetee.
I would like to have his blog under: -http://tweetee.blob.mydomain.com
Unfortunatly it doesn't work as it cannot find where is the blog directory.
I can only access if I put: -http://tweetee.blob.mydomain.com/blogs/
I tried to change my htaccess at the root of the site to:
RewriteRule http://(.*\.blog\.mydomain\.com/) http://$1/blogs/ [QSA,L,R=301]
but it doesn't work.
Could anybody help on that issue please?