Hey everyone.. this might be something simple or complicated, not really sure! There seems to be something wrong, potentially with a silverstripe install or something on our server. I will try to give as much info as poss!
Here is our (nearly completed) company website: http://assembleonline.co.uk/
We have our nameservers, which we use for clients sites as:
ns1.assembleonline.co.uk
ns2.assembleonline.co.uk
All seems ok so far? Well, the problem I have encountered is when we set up new sites in CPanel. None of the links that cpanel provides which use the IP address seem to work.. I cant work out where the problem is.
For example, this website: http://www.l3contracts.com/
should be available here: http://77.92.77.112/~l3contra/
However, if you click on the link, it goes through to a 404 error page on our company site. Is there something that needs adding to the htaccess file on our main site to stop the 404 page being shown?
I have added in some code to the htaccess folder to allow us to create additional directories on the server, and also to redirect the www to non www version of the site. The code looks like this at the moment:
### SILVERSTRIPE START ###
<Files *.ss>
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Files>
<Files web.config>
Order deny,allow
Deny from all
</Files>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.assembleonline\.co\.uk$ [NC]
RewriteRule ^(.*)$ http://assembleonline.co.uk/$1 [R=301,L]
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
</IfModule>
### SILVERSTRIPE END ###
Thanks in advance :))