• Resolved MetricCandy

    (@metriccandy)


    Hello all,

    I have currently a multisite running.
    The setup is:

    http://www.domain.com
    http://www.domain.com/subdomain/

    Now I currently have the following problem

    When I navigate in my adresbar to:

    domain.com I do not go to my site.
    neither do my
    domain.com/subdomain/

    it only works if I put the www. in front of it.

    Can I fix this?
    And with I, I mean: can you help me fix it. 😉

    Thanks

    Edit: just noticed domain.com exists, as you may have assumed it I used that as an alias for my site…

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi

    No, simple solution for this!

    All you can do, redirect non www users to www.
    e.g: If users point to browse http://domain.com they’ll redirect to http://www.domain.com

    Same thing will happen for your sub-domain
    e.g: If users point to browse http://domain.com/subdomain/ they’ll redirect to http://www.domain.com/subdomain/

    If you wish to do so, please paste this following codes to .htaccess file:

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

    You can find .htaccess file in root directory of WordPress installation, same path as wp-config.php file.

    Thread Starter MetricCandy

    (@metriccandy)

    Thanks for your reaction I will try this tomorrow.

    I have made some DNS additions to see if they work first needs the 24 hour cycle.

    After 24 hours i will test this.

    Thread Starter MetricCandy

    (@metriccandy)

    Thanks this worked for me.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘url problem in multisite’ is closed to new replies.