Merlin
Expert Member
Hi all,
So I sorted out the first query I had, but I've come across a new one...
I have an addon domain registered to my hosting account.
I have an .htaccess sitting in the root which controls 'a lot of stuff'.
Now I want to place an .htaccess in the folder which houses the addon domain.
/.htaccess
/addon/.htaccess
As soon as I put an .htaccess into the addon folder - regardless of what it is in the file - the 'site fails with a 500 error.
Any ideas why this would be?
Here is the code I'm trying to get working:
Thanks, Nic
So I sorted out the first query I had, but I've come across a new one...
I have an addon domain registered to my hosting account.
I have an .htaccess sitting in the root which controls 'a lot of stuff'.
Now I want to place an .htaccess in the folder which houses the addon domain.
/.htaccess
/addon/.htaccess
As soon as I put an .htaccess into the addon folder - regardless of what it is in the file - the 'site fails with a 500 error.
Any ideas why this would be?
Here is the code I'm trying to get working:
Code:
################################################## Rewrite Manipulation
# Engine
RewriteEngine on
Options +FollowSymLinks
# No 'www' to 'www'
RewriteCond %{HTTP_HOST} ^exquisiteinteriors\.co.za$ [NC]
RewriteRule ^(.*) http://www.exquisiteinteriors.co.za/$1 [R=301,L]
# 'www' subdomain to root
#RewriteCond %{HTTP_HOST} ^www.exquisiteinteriors.the3rdrock.com$
#RewriteRule (.*) http://www.exquisiteinteriors.co.za/$1 [R=301,L]
# No 'www' subdomain to root
#RewriteCond %{HTTP_HOST} ^exquisiteinteriors.the3rdrock.com$
#RewriteRule (.*) http://www.exquisiteinteriors.co.za/$1 [R=301,L]
# Host folder redirect
#RewriteCond %{HTTP_HOST} ^(www\.)?the3rdrock.com/exquisiteinteriors/$
#RewriteRule (.*) http://www.exquisiteinteriors.co.za/$1 [R=301,L]
Thanks, Nic