The MU forums have moved to WordPress.org

How To Redirect Folder To non-www (3 posts)

  1. mdvaldosta
    Member
    Posted 16 years ago #

    Created a support forum in the /forums directory of my WPMU. Unfortunately, every subdomain can access /forums which makes for lots of duplicate content. Is there an .htaccess line that would make sure any call for /forums will go to just one place yet not interfere with the wildcard subdomains?

  2. andrea_r
    Moderator
    Posted 16 years ago #

    Huh, I just checked and yeah it does that on my install too. :d

    honestly though, it's a non-issue. 99% of users aren't smart enough to find it there unless you link it or mention it, and there won't be any duplicated content. Still goes in one database.

  3. lunabyte
    Member
    Posted 16 years ago #

    In the main index.php file for /forum, you could do a check against the server variable for http host, and if it's not domain.tld, then do a header redirect to it.

    Remembering to keep the request uri in the redirect, of course.

About this Topic

  • Started 16 years ago by mdvaldosta
  • Latest reply from lunabyte