Hi there, sorry for being stupid but I can’t figure this out and really need some help from you guys. I have a CMS website hosted on dreamhost… virtual server, not dedicated, no static ip, no ssl.
Specifically, I’m hoping for this outcome:
1.a) People typing mysite.com/blog get redirected to blog.mysite.com and,
1.b) The address bar automatically changes to display blog.mysite.com
2) mysite.com/blog becomes blog.mysite.com
3) mysite.com/blog/myblog1 becomes blog.mysite.com/myblog1 AND mysite.com/blog/myblog2 becomes blog.mysite.com/myblog2 AND any new blog created by users to follow this rule without having to edit htaccess for every new blog added, I’m thinking of a wild card here like '’.
So, mysite.com/blog/ becomes blog.mysite.com/*
4) Automatically generated ‘internal’ website links to these blogs are in the form mysite.com/blog and cannot be changed So it would be awesome if htaccess can override every link on the website that’s in the form of mysite.com/blog/* to actually show as blog.mysite.com/*.
If #4 is not possible I can live with this as long as #1.a and #1.b above are occurring.
I did try modifying my site’s htaccess but that didnt work and returned errors. I’m new to modifying htaccess. Do I need to create a subdomain in my control panel in the form of blog.mysite.com or is htaccess is all I need?
Thank you in advance