Forums

With www it works, without it doesn't. (3 posts)

  1. madsdk
    Member
    Posted 1 year ago #

    I've installed WP 3.0.4 on the root at http://www.madshougaard.dk, and have another blog on http://www.madshougaard.dk/knipser.

    If I omit www, and type madshougaard.dk/knipser, I'm returned to http://www.madshougaard.dk. How can I fix this?

    In my wp_config.php i have this:
    define( 'DOMAIN_CURRENT_SITE', 'www.madshougaard.dk' );

    I think this might cause the error. I skimmed a few possible solutions, but am unsure to try them, as I don't know I they apply to multisite 3.04?

    best regards
    Mads

  2. You can edit your WP-config and the database to remove the www, and then you shouldn't have the problem anymore. But for some reason a lot of people like having www in front.

    You could try an htaccess tweak, if you're dead set on defaulting to www version

    Put this ABOVE your WordPress calls:

    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^www.your_domain.com$
    RewriteRule ^(.*)$ http://www.your_domain.com/$1 [R=301]

    Obviously fix it for your domains.

  3. madsdk
    Member
    Posted 1 year ago #

    Thanks a lot Ipstenu! Took a deep breath and search/replaced the database. Worked like a charm.

    Finally I can rest :)

Topic Closed

This topic has been closed to new replies.

About this Topic