runlos
Forum Replies Created
-
Ok, i found a solution. If someone else with this problem is out there, this is what worked:
from this thread, Network Admin Links 404 Error , the following .htaccess (placed in root):# BEGIN WordPress <IfModule mod_rewrite.c> 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] </IfModule> # END WordPressWith wp-config:
define('WP_ALLOW_MULTISITE', true); define('MULTISITE', true); define('SUBDOMAIN_INSTALL', false); define('DOMAIN_CURRENT_SITE', 'site.com'); define('PATH_CURRENT_SITE', '/'); define('SITE_ID_CURRENT_SITE', 1); define('BLOG_ID_CURRENT_SITE', 1);And in the database under wp_’blog-id’_options, option_name siteurl the option_value was changed from site.com/site2 to site.com
Now it all seems to work fine.
Edit(Couldn’t edit the post):
I should add that in my wp-config multisite setup looks like this:define('WP_ALLOW_MULTISITE', true); define('MULTISITE', true); define('SUBDOMAIN_INSTALL', false); define('DOMAIN_CURRENT_SITE', 'ryfylkefjordhotel.no'); define('PATH_CURRENT_SITE', '/'); define('SITE_ID_CURRENT_SITE', 1); define('BLOG_ID_CURRENT_SITE', 1);where if i change
define('PATH_CURRENT_SITE', '/');todefine('PATH_CURRENT_SITE', '/wordpress');i get access to wp-admin, but not the wp-admin/network, which ends up in a redirect loop. This may also be a important part of the issue im dealing with.if i rewrite my .htaccess to this:
# BEGIN WordPress <IfModule mod_rewrite.c> 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] </IfModule> # END WordPressI can access every thing just fine, but the styles for site.com/site2/ is broken because all the paths to the wp-includes are are changed to site.com/site2/wp-includes. the site2 part should not be there.
Thank you! The custom CSS worked great!
Forum: Plugins
In reply to: [CPT Bootstrap Carousel] Carousel Not working – Showing just first slideHi Phil,
Thanks for the quick response
Turns out the theme i’m using, came with a stripped bootstrap.js, without the carousel function. So i replaced it with bootstraps default one, and now it seems to be working as it should 😉