WordPress.org

Ready to get started?Download WordPress

Forums

Adding multisite removed 'www' from my URL causing broken links (5 posts)

  1. kateM82
    Member
    Posted 3 years ago #

    Hi,

    I posted a question yesteray, link below, and ended up rather than finding a way to get the www back, i ended up adding this to the .htaccess to 301 redirect to the new URL.

    # Getting rid of the WWW in front
    RewriteCond %{HTTP_HOST} ^www.dropdeadgorgeousdaily.com [NC]
    RewriteRule ^(.*)$ http://dropdeadgorgeousdaily.com/$1 [L,R=301]

    The problem is it is redirecting all links to the homepage, and not to the non www version of that page.

    So I need either:
    A - a way to get the www back in the URL (it's greyed out in the admin)
    B - a way to change the redirect code to redirect to individual pages

    thanks.

    http://wordpress.org/support/topic/427177?replies=12

  2. kateM82
    Member
    Posted 3 years ago #

    Hi again, any help with this would be great!

  3. eliteventurellc
    Member
    Posted 3 years ago #

    Is there a simple fix to add to htaccess to add www to all domains within a multisite?

  4. When you create multisite, you can force it to use www, but really thats the easiest way.

    As for 'all domains', are you using a plugin to manage multiple domains?

  5. If you map domains without the www, they should also redirect the non-www to the same place.

    If you map them without the www, the non-www goes nowhere.

Topic Closed

This topic has been closed to new replies.

About this Topic