Hi, I have just set up a website in a subfolder of a domain, and changed the .htaccess file so that it points the new website's domain name to the subfolder, as follows:
# REWRITE FOR NEWSITE
ReWriteCond %{HTTP_HOST} newsite.co.uk
ReWriteCond %{REQUEST_URI} !newsite/
ReWriteRule ^(.*)$ newsite/$1 [L]
(That isn't the real domain name, in case you were wondering!)
The new site is in the folder:
[
oldsite.co.uk...]
and the home page is called index.htm.
I can access the home page if I go directly to
[
oldsite.co.uk...]
or
[
newsite.co.uk...]
but if I go to
[
oldsite.co.uk...]
or
[
newsite.co.uk...]
I get the 403 Forbidden message.
I'm sure this is something simple that I've done wrong, but I've searched on Google and found a lot of different solutions, and wasn't sure which is best.
I am using a Fasthosts dedicated server, running Apache, and I am moderately proficient at using the command line (Fasthosts has an excellent remote control console which lets you control the server as if you were looking at its screen and typing on its keyboard).
Many thanks in advance for any help you can give.