At the same time I want to have yoga-kids.net rewritten to www.yoga-kids.net. (I manage to have this easy piece work!) Without rule 1 (with or without the strikethrough line), here is the htaccess:
`
Options +FollowSymLinks
RewriteEngine On
I’m sorry, but that is not possible on free hosting. On here, every subdomain get it’s own folder. And it’s not possible to use .htaccess rules to include the content from one website into another (not just on our hosting, but in general).
The only way to duplicate content on blog.example.com and example.com/blog/, it to manually copy the files into blog.example.com/htdocs/ and example.com/htdocs/blog/.
Yes that's what I am trying to do: aliasing blog.example.com to the contents of example.com/blog/.
Too bas it is not available on InfinityFree free hosting. Duplicating contents is not a proper solution...
Is this decision from InfinityFree subject to be reassessed?
Thank you,
Chris.
I can't say anything for sure, but I don't see any reason why we would change this behavior.
Most people specifically DON'T want to have their subdomains as subdirectories. Search engines tend to penalize your website if you've duplicated content on multiple domains, which means having the site accessible in both ways is usually bad. Additionally, using subdirectories tends to cause unintended side effects with .htaccess rules, and make it harder to properly isolate seperate domains for security.
I think I understand what you want and why you want this, but your setup is quite exceptional.
The best solution would be to have this configurable so you can decide for yourself which domain is linked to which directory. Which is already possible with premium hosting. But I personally don't see this feature brought to free hosting any time soon.