Suppress subdirectory from WordPress Multisite primary URL
Suppress subdirectory from WordPress Multisite primary URL
Suppress subdirectory from WordPress Multisite primary URL
I use a plugin for this issue. Even if debug is set to false, it still prints error to the screen in red. It is easy and fast to create the plugin. In your plugins folder in your wordpress install, create a new file and call it anything you like, for instance, debugger-plugin.php. Open up … Read more
You saved your wp-config.php with a Byte order mark (BOM). Save the file again without the BOM. In Linux or Mac OS X open the file with Vim, enter … :set nobomb … and save it. In Windows open it in Notepad++ and convert it to UTF-8 without BOM:
You can easily set up another $wpdb object to access your other database. $mydb = new wpdb(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST); var_dump($mydb); That, of course, uses the default connection credentials but if you defined different constants and used those, is should work just fine. If this other database is not a WordPress database, you won’t have … Read more
Try changing your script to this since you’re not actually running a cross-browser request: <script> (function($) { $(document).ready(function() { var refreshId = setInterval(function() { $(‘#content’).fadeOut(“fast”).load(‘/new.php’).fadeIn(“fast”); $(“#content .span9 article”).unwrap(); }, 10000); }); })(jQuery); UPDATE: Wrapped in WP-friendly jQuery no-conflict code…
IMHO a better approach would be adding the remote server’s directory as a locally mounted directory and use this as wp-content directory. Doing this on the block/filesystem level means that WordPress won’t notice a thing, since it appears to WordPress as normal local directory. You may want to have a look at sshfs in order … Read more
I would recommend to define this constant in your wp-config.php to force HTTPS on admin: define(‘FORCE_SSL_ADMIN’, true); Also, there is a function called is_admin() which could be helpful in your case. if ( is_admin() ) { $_SERVER[‘HTTPS’] = ‘on’; } However, if you have a rule in your web server forcing all wp-admin and wp-login.php … Read more
Ok I actually ended up finding an answer by myself 😀 Check out this blog post: http://halfelf.org/2014/switching-main-blog-multisite/
Quite likely you’re using the wrong encryption/port combination. You are using port 465 for tls. Port 465 should be used for SSL Port 587 should be used for TLS
Be sure you have updated your database to reflect the correct URL. You can do this in phpmyadmin with a bit of SQL. Good article about it here: http://codex.wordpress.org/Changing_The_Site_URL#Changing_the_URL_directly_in_the_database