• Hi all,
    I’ve installed (fresh) my main WP Multisite on public_html/mainsystem/ subfolder (and i’ve not install any sub-site yet) and activate Multisite option without any problem. When i enter my main site panel and settings there is no problem but when i try to switch Network Options (Sites, Users, Plugins, even when try to install a new plugin) my panel redirects me to public_html/.
    Eg:
    My main site is https://www.site.com So when i try to add a new plugin from Network Admin Panel it tries to load https://www.site.com/wp-admin/network/plugin-install.php but it should be https://www.site.com/mainsystem/wp-admin/network/plugin-install.php
    My top level htaccess file is same as below:

    <br />
    # BEGIN WordPress<br />
    <IfModule mod_rewrite.c><br />
    RewriteEngine On<br />
    RewriteBase /<br />
    RewriteRule ^index\.php$ - [L]<br />
    RewriteCond %{REQUEST_FILENAME} !-f<br />
    RewriteCond %{REQUEST_FILENAME} !-d<br />
    RewriteRule . /index.php [L]<br />
    </IfModule><br />
    # END WordPress<br />

    My Main site htaccess file is same as below:

    <br />
    # BEGIN WordPress<br />
    <IfModule mod_rewrite.c><br />
    RewriteEngine On<br />
    RewriteBase /<br />
    RewriteRule ^index\.php$ - [L]</p>
    <p># add a trailing slash to /wp-admin<br />
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]</p>
    <p>RewriteCond %{REQUEST_FILENAME} -f [OR]<br />
    RewriteCond %{REQUEST_FILENAME} -d<br />
    RewriteRule ^ - [L]<br />
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) mainsystem/$2 [L]<br />
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ mainsystem/$2 [L]<br />
    RewriteRule . index.php [L]<br />
    </IfModule><br />
    # END WordPress<br />

    What should i do to correct this issue?
    Thanks right now, Regards…

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Does your htaccess REALLY have the <br> in there or did you just do that?

    Thread Starter AlpDmr

    (@alpdmr)

    no.. i did it here, because i forgot wrap the code with back-ticks and i want to make it readable then i couldn’t correct after i see that (edit time restriction)

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Yeah, don’t use br ?? It doesn’t do anything helpful here.

    For mainsystem try this .htaccess:

    RewriteEngine On
    RewriteBase /mainsystem/
    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]
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Redirecting Problem on Multisite Admin Panel’ is closed to new replies.