Adding something like this to your .htaccess file will redirect requests to the subdomain "subdomain1" to the subdirectory "/subdomain1"
RewriteEngine On
Options +FollowSymlinks
# Rewrite rule for subdomain1.mydomain.com
RewriteCond %{HTTP_HOST} ^subdomain1\.mydomain\.com
RewriteCond %{REQUEST_URI}!^/subdomain1
Rewriterule ^(.*)$ /subdomain1/$1 [L]
You should then treat subdirectory "subdomain1" as the web root directory of subdomain "subdomain1" - You should place a robots.txt file there, for example, if you wish to control search engine spidering of subdomain1
See also this thread [webmasterworld.com]. Things get going on the second page.
Hope this helps, and since I forgot my manners the first time, Welcome to WebmasterWorld [webmasterworld.com]!
Jim
ErrorDocument 404 [willsdj.com...]
ErrorDocument 401 [willsdj.com...]
ErrorDocument 500 [willsdj.com...]
RewriteEngine On
Options +FollowSymlinks
# Rewrite rule for nexpost.net
RewriteCond %{HTTP_HOST} ^nexpost\.net
RewriteCond %{REQUEST_URI}!^/nexpost
Rewriterule ^(.*)$ /nexpost/$1 [L]
IndexIgnore *
AddType application/x-httpd-php4 .php
Action application/x-httpd-php4 "/cgi-bin/php"
Yes, I see a problem...
I messed up the order of the first two directives - Google update fever, I guess... ;)
Options +FollowSymlinks
RewriteEngine On
# Rewrite rule for nexpost.net
RewriteCond %{HTTP_HOST} ^nexpost\.net
RewriteCond %{REQUEST_URI} !^/nexpost
Rewriterule ^(.*)$ /nexpost/$1 [L]
IndexIgnore *
If you wish to completely suppress directory listings in your directories to prevent people poking around, use
Options +FollowSymLinks -Indexes
If you continue to get errors, see if you can access your raw error log or, as a last resort, the error report in your stats. It would help to know what error is reported.
Sorry for the error.
Jim