I have two registered domain names that are hosted by the same ISP. Firstdomain.com points to /html and the seconddomain.com to /html/seconddomain.
The ISP has enabled using subdomains by rewriting. I can successfully add a subdomain sub.firstdomain.com by adding the needed code in .htaccess file in /html but cannot create a subdomain for secondomain.com
I guess this is because the seconddomain.com is already rewritten on a higher level. This is an example of the code ISP instructs to use for subdomains:
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} forum.domain.com$
RewriteCond %{REQUEST_URI} !forum/
RewriteRule ^(.*)$ forum/$1
I'm not so familiar with regexps that I could write one on my own for this purpose.