• We just redevloped our site on a new instance of WordPress. On our old site, our former admin used Redirection to utilize essentially subdomains. So, for instance, centralil.fragilex.org would go to the page for our Central IL chapter. The source URL is “/centralil/(.*)” the target URL is “/central-illinois-fragile-x-2/” and RegEX is checked.

    On the new site the redirection doesn’t work – it just goes to the homepage. The developer of the site, who isn’t supporting this function, said, “The Redirections plugin looks at the sub-directory of the URL and then should redirect to another sub-directory. The ‘centralil.fragilex.org’ is a sub-domain which needs to be mapped to a sub-directory first before the Redirections plugin can be applied. Please add the corresponding rules in the ‘.htaccess’ file to map the sub-domain to a directory.”

    We have never setup these as subdomains.

    Also, these are not showing up in the log file.

    Any ideas on what I might be missing? Do I need to add something to .htaccess and, if so, what?

    Thank you for any help!

    Dan

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Godley

    (@johnny5)

    I’m not entirely sure I understand the problem. Are you using WP multisite to do this, or just different installations of WP?

    Thread Starter danwhiting

    (@danwhiting)

    Thanks for the reply. It is a single site. Instead of migrating it and making updates, it is a new installation.

    We used the subdomain redirect to point to a page on the site.

    The subdomain redirects are not working. We imported them from the old site, and, from all I can tell, are the same.

    When I go to one – say centralil.fragilex.org – it ends up on the homepage for the site instead of the internal page it should go to. Nothing shows up in the Redirection log.

    Plugin Author John Godley

    (@johnny5)

    I think the key is:

    Please add the corresponding rules in the ‘.htaccess’ file to map the sub-domain to a directory

    It sounds like your previous installation had something in .htaccess that made requests for the subdomains go to a directory. Then Redirection is able to pick up that directory and redirect it somewhere else.

    You can find details of doing that in .htaccess from places like this:

    https://stackoverflow.com/questions/10642426/htaccess-rewrite-subdomain-to-directory

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘“Subdomains”’ is closed to new replies.