The MU forums have moved to WordPress.org

domain with www, blogs in subfolder possible? (7 posts)

  1. hartlrobert
    Member
    Posted 16 years ago #

    Grrrr, testing with Mu is really grrr (cache, no online-editing, ...).

    I have to adress to http://www.domain.com/directory/foo-blog/

    -> WITH www.

    The .htacess in the root does not work. All MU-urls work only with http://domain...

    Also no plugin really works for all blogs (actually I get 404 :-/ )

    Is there a way to rewrite (301) all MU-Urls to www?

    Thanks.

  2. drmiketemp
    Member
    Posted 16 years ago #

    Grrrr, testing with Mu is really grrr (cache, no online-editing, ...).

    Care to explain? Have no idea as to what you're talking about.

    Gotta admit that if you're site doesn't respond to domain.tld, it's more of a problem with your setup as you're required by RFC to respond to both.

    Best bet would be to open up the database, edit the record in wp_site, add in the 'www', and see if that works. You're probably also going to have to edit other records within other tables like wp_blogs and wp_sitemeta.

    Good luck,
    -drmike

  3. hartlrobert
    Member
    Posted 16 years ago #

    thanks, that grr ins't important for my problem here. :-) It's more because of developing has to be different with WP MU.

    Ontopic:
    I added the www in all relevant tables (are some) in the database. The wp-generated urls are then with www, but after click I get 404s.

    So I thought I let WP MU the no-www (never change a running ...) and make it per htaccess (as in root).

    But my attempts didn't work, so thanks for help.

  4. dsader
    Member
    Posted 16 years ago #

    I have a working rule in my htaccess to remove the www:

    RewriteCond %{HTTP_HOST} ^www\.(.*)
    RewriteRule ^(.*)       http://%1/$1 [R,L]

    It's immediately after the default htaccess.dist.

  5. lunabyte
    Member
    Posted 16 years ago #

    Except that isn't what the OP wants. They want to keep the deprecated www.

    Which, has been discussed several times before.

  6. dsader
    Member
    Posted 16 years ago #

    Ah. My bad.

  7. hartlrobert
    Member
    Posted 16 years ago #

    Yes I know WP does not want www.
    But the WP MU is in a folder an the rest of the (old) domain has www. So I want www.
    For me it would be okay when software tells that no-www should be preferred, but...
    I go on reading and trying.

About this Topic

  • Started 16 years ago by hartlrobert
  • Latest reply from hartlrobert