Forum Moderators: phranque
¦ - domain.com
¦ ¦ - images
¦ - subdomain.domain.com
I have a .htaccess file in subdomain.domain.com
How do I do a redirect to a file in domain.com?
I do not wish to do an external redirect i.e. using the [R] flag
Is this possible?
Thanks in advance?
You don't have to do an external redirect. You just have to think in terms of URLs being different things from server pathnames. They do not have to have any relationship at all. As long as your subdomain and main domain are under the same filesystem, just detect the URL that you need to "redirect", and serve a file stored somewhere else in the file system.
The above is general since you described your URL structure and not your directory structure, but if the subdomain shares filespace with the main domain, it should be easy to do what you want.
Jim