Ok thanks for your answer.
I'm trying to solve this with .htaccess files.
So, my IANA — Example domains domain points to:
Code:
/home/username/public_html/www.domain.com
and my subdomain points to:
Code:
/home/username/public_html/subdomain.domain.com
I've found this rule, but i don't know how to rewrite it to fit my needs:
Code:
RewriteCond %{SERVER_PORT} ^443$
RewriteCond %{HTTP_HOST} ^sub\.domain\.com$ [NC]
RewriteCond %{REQUEST_URI} !^/subdomains/sub/
RewriteRule ^(.*) /subdomains/sub/$1
Can someone helps me?
Thanks.