• Hello !

    I am developing a 150 pages site for a client. I had to developpe it on my own serveur so the client can work on the content with me.

    My multisite is set to subdirectories. My main domain is designraphiquenickel.com and it has a separate install.

    I installed WordPress multisite in a sub-domain (https://fs.photonickel.com/)

    The multisite has this structure

    main site : https://fs.photonickel.com/
    other site : fs.photonickel.com/lessongesturbulents

    The problem is that now, designraphiquenickel.com points to fs.photonickel.com… WHYYYYY !?

    THANK YOU!!!

    Here is my .htacces and wp.config.php code

    wp.config:
    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, false);
    define(‘DOMAIN_CURRENT_SITE’, ‘fs.photonickel.com’);
    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);`

    .htacces
    RewriteEngine On
    RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ – [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).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]`

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Where are your main domain’s files in your server’s file structure? They’d normally be in public root (often “public_html” but YMMV)

    Where are the multisite’s files in the server file structure? They’d normally be in a sub-folder under public root, typically /fs.photonickel.com/ but can be anything you choose. Your virtual hosts configuration should take main domain requests to public root and multisite domain requests directly to the multisite sub-folder.

    If that’s your file arrangement and your main domain requests are misdirected, there’s an issue in your virtual hosts configuration. It’s not an .htaccess issue. By the time a request reaches .htaccess, the misdirection has already occurred. Managing virtual hosts varies by hosting account. You don’t typically alter the virtual hosts files directly. There’s usually some sort of UI in cPanel or similar hosting configuration.

    If you cannot work out a solution through you hosting configuration UI, you’ll need assistance from your host.

Viewing 1 replies (of 1 total)
  • The topic ‘Main domain redirects to subdomain multisite’ is closed to new replies.