Getting mydomain.com/subdomain to resolve to subdomain.mydomain.com

Posted by Donald Jenkins on Stack Overflow See other posts from Stack Overflow or by Donald Jenkins
Published on 2010-04-13T04:47:56Z Indexed on 2010/04/13 4:52 UTC
Read the original article Hit count: 817

Filed under:
|
|
|
|

I have content on subdomain1.mydomain.com which can't reside on mydomain.com/subdomain1. Nevertheless, all my other content resides in folders of the mydomain.com/subdomain* type.

For the sake of consistency, I'd like the content actually located at subdomain1.mydomain.com to appear as if it were on mydomain.com/subdomain1 — Is there any way, using .htaccess, that I can achieve this, bearing in mind that:

(1) the subdomain itself also has a nested permalink structure, meaning that there are additional folders in the directory structure of the subdomain;

(2) I want the browser to display the address as mydomain/subdomain1 after the redirect.

© Stack Overflow or respective owner

Getting mydomain.com/subdomain to resolve to subdomain.mydomain.com

Posted on Server Fault See other posts from Server Fault
Published on 2010-04-13T04:47:56Z Indexed on 2010/04/13 22:03 UTC
Read the original article Hit count: 817

Filed under:
|
|
|
|

I have content on subdomain1.mydomain.com which can't reside on mydomain.com/subdomain1. Nevertheless, all my other content resides in folders of the mydomain.com/subdomain* type.

For the sake of consistency, I'd like the content actually located at subdomain1.mydomain.com to appear as if it were on mydomain.com/subdomain1 — Is there any way, using .htaccess, that I can achieve this, bearing in mind that:

(1) the subdomain itself also has a nested permalink structure, meaning that there are additional folders in the directory structure of the subdomain;

(2) I want the browser to display the address as mydomain/subdomain1 after the redirect.

© Server Fault or respective owner

Related posts about subdomain

Related posts about dns