WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Domain Mapping Plugin - Infinite loop issue (14 posts)

  1. Vijay Kumar
    Member
    Posted 2 years ago #

    I am running multisite blogs. For mapping the the blogs to respective domain I am using domain mapping plugin. But its resulting in infinite loop between www and non-www versions.

    Any help will be appreciated.

  2. map the www version as well.

  3. Vijay Kumar
    Member
    Posted 2 years ago #

    I have mapped the www domain also. But still the same issue.

  4. Kind of hard to help without a URL to look at. :P

  5. Vijay Kumar
    Member
    Posted 2 years ago #

  6. Vijay Kumar
    Member
    Posted 2 years ago #

    I want it to stay on http://www.justaudioproduction.com/work/adr.html only. Not to redirect to non-www domain.

  7. Which domain did you make primary in the mapping? www or non-www?

  8. Vijay Kumar
    Member
    Posted 2 years ago #

    When I make www domain as primary, it results in an infinite loop.

  9. You made two mappings, www and non-www, correct?

    Are you UNCHECKING non-www as primary when you check www?

  10. Vijay Kumar
    Member
    Posted 2 years ago #

    Yes. you are right.

  11. It's possible that your server is set up to default to non-www, but honestly, there is zero seo benefit from having www in there (or not, Google doesn't care).

  12. MattV
    Member
    Posted 2 years ago #

    @Vijay: if you are using subdirectories, paste this snippet in your .htaccess file (before any other rules!):

    # Redirect to www.
    RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

    If you´re using subdomains, try mapping both the WWW and the non-WWWW version of your domain, like this (assuming your site ID is 2, change this for the real one of course):

    Rule 1:

    1. SiteID: 2
    2. Domain: http://www.justaudioproduction.com
    3. Primary: yes

    Rule 2:

    1. SiteID: 2
    2. Domain: justaudioproduction.com
    3. Primary: no
  13. Vijay Kumar
    Member
    Posted 2 years ago #

    Thanks @MattV, Your trick helped me. Its working now.

    Many thanks :)

Topic Closed

This topic has been closed to new replies.

About this Topic