View Full Version : Sub-domain - .htaccess

01-30-2011, 10:06 PM
I've created a sub-domain of new.mysite.net and new.mysite.com (mysite is generic) and I get the following error:


You don't have permission to access / on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I believe that something is not recognizing where the files for this are stored. In the directory it is listed as: /new and /joshbudde/new

I have tried this in .htaccess as well:

DirectoryIndex index.php

RewriteEngine On
RewriteCond %{HTTP_HOST} ^new\.mysite\.net
RewriteRule ^(.*)$ /new/$1 [L]

RewriteEngine On
RewriteCond %{HTTP_HOST} ^new\.mysite\.com
RewriteRule ^(.*)$ /joshbudde/new/$1 [L]

Thanks for your help in advanced!