Hi everybody. I really need some help.
I'm new to mod_rewrite.
I got some domain example.com
and subdomain sub.example.com
When I create subdomains, my host's system creates subfolders for them in site root.
For example, example.com is in www, and sub.example.com is in www/sub.
I need to make all request to www/sub be internally redirected to www/index.php in the filesystem level, not url.
User should see sub.example.com, but in system it should be like example.com. My CMS will serve request depending on url, not file system.
And I have no access to vhosts configuration.
I tried to do that without mod_rewrite by creating symlink www/sub to point to www and it works on my configuration, but host's system doesn't like my idea.
So I need to make it work like symlinks I described but by rewrite module.
Please help!
And sorry for English, it's not my native language.
Regargs.