536 Posts in 398 Topics by 230 members
|Go to End|
13 July 2012 at 7:20pm
I've looked around the forums and found a lot of similar questions, but not exactly the same situation.
I have a Silverstripe website, that sits in the root folder and works great.
Let's says it works on www.domain.com
I created another Silverstripe website, that physically sits in a subfolder of the same server.
Let's call the subfolder domain2.
It is accessible if I go to www.domain.com/domain2/
Now I get a 500 error from the GoDaddy Apache server.
I know that my issue probably comes from the .htaccess files, but I am unsure of what I should do.
Can this work in this configuration?
Or do I have to move both to subfolders and use the .htaccess file at the root to redirect?
If so, what should it say? (knowing that I use .htaccess about once a year and forget all about it until I have to use it again; and it's been a year).
Thanks in advance.
6 August 2012 at 2:52am
Are you using a hosting control panel to configure the sites, or do you have direct access to apache to configure the sites? I always place all of my sites into their own separate subfolders.
This virtual host config is pretty much all that Apache needs to run the sites as long as php5 and mod_rewrite are enabled. I leave the .htaccess files alone and as long as the domains are pointed to the server, Apache serves up the correct site based on the domain specified in SerName and ServerAlias.
Options Indexes FollowSymLinks MultiViews
allow from all
|Go to Top|