Support » Networking WordPress » multisite non www links redirects to main site

Viewing 2 replies - 1 through 2 (of 2 total)
  • I would have looked but you forgot to include the link to your actual site!

    Check your htaccess file.

    and…

    I usually just cname the www url to the root url…

    Thread Starter michielpopmp

    (@michielpopmp)

    Hi Nash,

    Thank you for your fast response!

    The url to the main site is https://www.clochardsdeluxe.nl/.
    The url to the sub site is: https://www.clochardsdeluxe.nl/nl/ and this url is not working without www.

    My .htaccess looks like this:
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTPS} !=on [NC]
    RewriteCond %{HTTP_HOST} !^www\. [NC]
    RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
    </IfModule>

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    </IfModule>

    This is the .htaccess that I got when installing multi site. I haven’t change anything by myself…

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.