WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Catch all DNS and subdomain DNS (2 posts)

  1. voopress
    Member
    Posted 1 year ago #

    I have two sites. One is a subdomain site and the other is a subdirectory site.
    I have some users who started their sites as a subdomain but now want to have a subdirectory while keeping the subdomain name. This is not an issue using standard apache virtual hosting for example where I can simply have a virtualhost then in it's html directory, put a small index.php file which redirects the user to http://www.mydomain.com/users-new-blog.

    Since I have a catch all DNS for the subdomain site, is there a directory where I could put my index.php file for example, in order to redirect users to the subdirectory site?

  2. voopress
    Member
    Posted 1 year ago #

    I guess no one knows the answer to this.
    One solution if I can't get any answer would be to manually create the sub-domain in the dns record so that the catch all doesn't get it. Then have that particular name sent to a virtualhost which in turn does have my php snippet redirecting.

    But, it would be so much easier if I could simply do this on WP :)

Topic Closed

This topic has been closed to new replies.

About this Topic