Knowledge Base
CSS
Plugins
- Locked out from Updraftplus Dashboard
- MAINWP – Kod för att se Server-IP
- Elementor List Icon fix
- Browser downloads file when opening a page
- Elementor Scroll Offset Menu Anchors
- Widget Panel Not Loading
- Align checkboxes to the right
- Greatly Improve the Entrance Animations
- Elementor Posts Widget Title Length
- Change Product Description Tab and Titles in WooCommerce
Wordpress
- Problems with Cronjobs?
- Increase WordPress Memory Limit
- Admin Dashboard not Displaying Correctly
- Critical error on this website
- Disable file editing in WordPress admin
- Password Protected Pages
- Hemsida dålig laddtid vid besök första gången
- Hjälp med koder (Multisite)
- How to add text under add to cart
Browsers
Windows
Server
Themes
WooCommerce
< All Topics
Print
Hjälp med koder (Multisite)
Posted2025-04-09
Updated2025-05-10
ByLasse
Nedan ser du koderna vi har för weblite.se WordPress Multisite installation.
I wp-config.php
Under /* Add any custom values between this line and the \”stop editing\” line. */
define( \'MULTISITE\', true );
define( \'SUBDOMAIN_INSTALL\', false );
define( \'DOMAIN_CURRENT_SITE\', \'weblite.se\' );
define( \'PATH_CURRENT_SITE\', \'/\' );
define( \'SITE_ID_CURRENT_SITE\', 1 );
define( \'BLOG_ID_CURRENT_SITE\', 1 );
byt ut weblite.se till den aktuella domänen
I htaccess:
# BEGIN WordPress
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]
# END WordPress
Table of Contents