WordPress.org

Ready to get started?Download WordPress

Forums

Multisite Redirection problem from www to none www (2 posts)

  1. gadic10
    Member
    Posted 1 year ago #

    Hi

    I have multisite. The domain is http://sitetowordpressite.com. I installed another site with the suffix he: http://sitetowordpressite.com/he.

    The problem is that when I type http://www.sitetowordpressite.com it is redirected automatically to sitetowordpressite.com.

    The definitions in dns are:

    Non-authoritative answer:
    Name: sitetowordpressite.com
    Address: 173.201.239.128

    > http://www.sitetowordpressite.com
    Server: UnKnown
    Address: 192.168.0.1

    Non-authoritative answer:
    Name: sitetowordpressite.com
    Address: 173.201.239.128
    Aliases: http://www.sitetowordpressite.com

    when I tried to enforce redirection by adding the following lines to .htaaccess file I got endless redirection loop. The lines are:

    # Force WWW
    RewriteCond %{HTTP_HOST} ^sitetowordpressite.com$ [NC]
    RewriteRule ^(.*)$ http://www.sitetowordpressite.com/$1 [R=301,L

    Please advise.

    Thanks in advance.

    Gadi

  2. FWIW, having 'wordpress' in your domain name is a trademark violation of the WordPress Foundation.

    You can only use http://www.domain.com OR domain.com, and whichever you choose will redirect the other. This is what you want to happen.

Topic Closed

This topic has been closed to new replies.

About this Topic