[wp-edu] Superadmins redirect to main page admin panel when misspelling pages

Jonathan Cox jcox9 at vcu.edu
Wed May 15 12:37:57 UTC 2013


I put "define('NOBLOGREDIRECT', 'http://example.com');" into the config file for my barebones installation. http://localhost/noblog took me to example.com, but http://localhost/noblog/wp-admin/ still took me to the dashboard of the main site. 

Gerlando, my guess is that your 404 is correct as the RewriteRule Bill pointed to won't have the same effect for subdomain installations as it will for subdirectory installation. I haven't really poked around the source much, but, if that's the case, I don't understand why it wouldn't checks to see if the requested blog exists in either case.

Jonathan

On May 14, 2013, at 3:06 PM, Heather Cleary wrote:

> Coincidentally, I just read a blog post on "How To Redirect Nonexistent Blogs in WordPress Multisite" on WPMU.org. I haven't tried it, so I don't know if it will fix the superadmin problem.
> 
> From http://wpmu.org/how-to-redirect-nonexistent-blogs-in-wordpress-multisite/
> 	Did you know that WordPress has a NOBLOGREDIRECT constant that you can use to customize the URL it redirects to for nonexistent blogs? Add this to your wp-config.php file and change the URL to wherever you want to send your visitors.
> define('NOBLOGREDIRECT', 'http://example.com');
> 
> Heather Cleary
> Digital Projects and Metadata Librarian
> Otis College of Art and Design
> 9045 Lincoln Blvd.
> Los Angeles, CA 90045
> hcleary at otis.edu
> 310.665.6926
> 
> -----Original Message-----
> From: wp-edu [mailto:wp-edu-bounces at lists.automattic.com] On Behalf Of gerlando termini
> Sent: Tuesday, May 14, 2013 11:32 AM
> To: wp-edu at lists.automattic.com
> Subject: Re: [wp-edu] Superadmins redirect to main page admin panel when misspelling pages
> 
> 
> In my case I have a subdomain setup. Now that I think about it, the 404 that I'm getting could be related to one of the custom plugins that I have installed in there. I will do some further testing and let you know.
> 
> Gerlando.
> 
>> 
>> Gerlando, do you have a subdomain or subdirectory setup?
>> 
>> Jonathan
>> 
> 
> _______________________________________________
> wp-edu mailing list
> wp-edu at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-edu
> _______________________________________________
> wp-edu mailing list
> wp-edu at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-edu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.automattic.com/pipermail/wp-edu/attachments/20130515/e5582814/attachment.html>


More information about the wp-edu mailing list