Hi all!
I search the forum to use a subdomain for something like a wiki or a forum.
And i found that, and pasted it on my .htaccess:
RewriteCond %{HTTP_HOST} thesub.domain.com
RewriteCond %{REQUEST_URI} !thesub/
RewriteRule ^(.*) thesub/$1 [L]
it's working for the thesub.domain.com but not for the pages after (like thesub.domain.com/page.php or image.png )
i'm not used to work with .htaccess so any tip would be great.
Thanks a lot !!!
cafespain
Member
Posted 17 years ago #
Wow, what a lot of work for a simple task...
Though, I don't know a lot about your set up so it might not be.
I just setup a new Vhost on my webserver to serve the sub-domain I want separate, and tell it the directory to serve the site from and then install the forum/other app there.
lunabyte
Member
Posted 17 years ago #
As long as that subdomain's vhost comes before the main vhost (that contains the wildcard server alias), no need for rewrites and such.
So, i there a way to add a rule ?