Support » Networking WordPress » All pages on multisite redirect to homepage w/o www

  • Resolved l0gan0


    ** EDIT **
    It turns out it was htaccess file.
    Two things to keep in mind if you’re having this problem:

    • Each host has a different way of rewriting the domain. Google search your host and you should be able to find it. Otherwise just call your host.
    • Make sure that you place that redirect ABOVE WP stuff in the htaccess file.

    Hope this helps!

    Original post:

    I have one a mess of a multisite install.

    I recently turned my new site live, moving my multisite from to All went smoothly, except one little thing. If you try to go to a page without the www subdomain, it redirects me to the main blog’s homepage.

    I assumed this was an .htaccess problem. After searching and trying different things for 12 hrs, I finally caved and called for tech support. He assumed .htaccess file too, but despite everything we tried, it simply would not work properly.

    He suggested that I download my sql database, and do a find [] and replace [] and see if that worked. Well, in short, I now have a terribly messed up multisite install.

    Has anyone ran into similar problems? Does anyone know if there is a place in the sql file that may have required both the www and non-www url? My assumption is that when I did the find and replace, it replaced something it shouldn’t have.


Viewing 2 replies - 1 through 2 (of 2 total)
  • I’ve the same problem. When i click to any pages it always display home page.

    Here is my wp-config.php

    /* Multisite */
    define('WP_ALLOW_MULTISITE', true); 
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    $base = '/hth/';
    define('DOMAIN_CURRENT_SITE', 'localhost');
    define('PATH_CURRENT_SITE', '/hth/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    and here is my .htaccess

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /hth/
    RewriteRule ^index\.php$ - [L]
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    # add a trailing slash to /wp-admin
    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).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    # END WordPress

    http://localhost/hth/about/ or http://localhost/hth/contact/ or any pages it display only home page screen.

    Anybody can help me?

    if i set permalink default it display true, else it display home page screen.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘All pages on multisite redirect to homepage w/o www’ is closed to new replies.