Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter dubilicious

    (@dubilicious)

    This line:
    RewriteRule ^(wp-(content|admin|includes).*) wordpress/$1 [L]

    The directory i put WordPress in I named “wordpress”, so that line handles any call to a “wp-” directory. and forces it into my install directory. if I look at the html of the admin the url for the Network Admin is “mysite.com/wp-admin/network/”. With out the rewrite rule – that link doesn’t work. The url to dashboard of a site however is “mysite.com/wordpress/wp-admin/”.

    so that is what I meant. If I choose for some reason not to use mod_rewrite, then the links don’t work. and manually correcting them doesn’t fix the forms that submit to “/wp-admin/network/pagename” instead of “/wordpress/wp-admin/network/pagename”

    Thread Starter dubilicious

    (@dubilicious)

    What’s your current .htaccess?

    I used what the install displayed in Step 4.2 (Enabling the Network)

    here it is:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) wordpress/$1 [L]
    RewriteRule ^(.*\.php)$ wordpress/$1 [L]
    RewriteRule . index.php [L]

    Thread Starter dubilicious

    (@dubilicious)

    Own Directory First. Then Multisite.

    During further testing/investigating, I noticed that rewrite rules where not being followed. After updating my apache config, I got rewrite working. And now the links are taking me to the correct pages but ONLY because the rewrite rules that are supplied by the admin handle if the “extra” directory is left off.

    So, it isn’t an issue any more – however the function that returns the Network admin url still returns the wrong value.

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