and so on. What is happening is that after installtion the htaccess file is screwing with all the secondary domains and causing server 500 errors. is there a way that I can alter the htaccess file to exclude certain folders...
Iâ€™m moving my sites to a server similar to the one you describe and Iâ€™m concerned about this subdomain thing. Could you please post the content of those .htaccess files? Iâ€™ve read that in some cases they have just to be there, even blank.
Where dirname is the name of the folder you want to be able to access without silverstripe interfering with that.
But I think you do not need that, because the .htacces will only interfere if you are accessing yourmaindomain.com/dirname, not if you acces yoursecondarydomain.com, even though it is in a subfolder of yourmaindomain.
This has been asked several times already.
The simplest solution (in my opinion) is to put an .htaccess into the subdomain folder (since that .htaccess file will take precedence over the one in the root folder). There you would typically turn rewriting off, or define your own rewrite rules for the subdomain. To disable rewriting, put the following in your .htaccess (for the subdomain)