Description of problem: Going directly to a particular blog entry for the main blogs.corp.redhat.com blog (see $URL) causes a redirect to happen, which results in the user being taken to the login page, or to the wp-admin/ area. This shouldn't happen, the user should be taken to the specific post. Steps to Reproduce: 1. Go to $URL Actual results: Login or admin page shown Expected results: The specified post should be displayed Additional info: Most likely this is a missing rewrite rule.
Ok, not a missing rewrite rule. Looks more like a core wpmu flaw when NOBLOGREDIRECT is set...
Started a thread in the wpmu forums: http://mu.wordpress.org/forums/topic.php?id=8910
Looks like the issue is with how the original everest datasource snapshot took place. there should be a "blog/" url prefix for the main blog when not using VHOST's.
Upping severity and priority, likely a db-level issue as a result of the initial installation.
*** Bug 457580 has been marked as a duplicate of this bug. ***
Ok, so this does appear to be an issue w/ the original config of the system. Need to run a sql update of the system to fix the issue, and implement a redirect ... SQL change: ============ UPDATE wp_blogs SET path = '/internalblogs/' WHERE blog_id = 1; commit; Redirect: ========== commit 7fc3e9d850d87e6aaa40ea8bfdc21138bedcfc3a Author: Bret McMillan <bretm> Date: Tue Sep 2 14:30:11 2008 -0400 bz 455801: main blog needs to be on same level as other blogs diff --git a/templates/wordpress-mu-proxy.conf.erb b/templates/wordpress-mu-proxy.conf.erb index 016f3fa..1714e9e 100644 --- a/templates/wordpress-mu-proxy.conf.erb +++ b/templates/wordpress-mu-proxy.conf.erb @@ -60,6 +60,8 @@ NameVirtualHost <%= ipaddress %>:443 ServerName <%= wpmu_visible_hostname %> DocumentRoot /usr/share/wordpress-mu + RewriteRule ^/$ https://<%= wpmu_visible_hostname %>/internalblogs/ [R=301,L] + # security; force https on certain urls RewriteRule ^/(.*?)wp-(admin/|login|register)(.*) https://<%= wpmu_visible_hostname %>/$1wp-$2$3 [L] </VirtualHost> @@ -68,6 +70,8 @@ NameVirtualHost <%= ipaddress %>:443 <VirtualHost <%= wpmu_visible_hostname %>:443> RewriteEngine on + RewriteRule ^/$ https://<%= wpmu_visible_hostname %>/internalblogs/ [R=301,L] + SSLEngine on ServerName propaganda-wpmu-bretm-virt2.usersys.redhat.com DocumentRoot /usr/share/wordpress-mu
Created attachment 315576 [details] proposed redirect config change Attaching the patch since git diff's don't appear well as a comment...
Moving to product "Red Hat Collaboration Applications".
See User Story #50326.
Looks like this was the wrong fix; instead of moving the blog down to be a peer, should have probably fixed its permalink structure. See: http://mu.wordpress.org/forums/topic.php?id=8910 Anyway, here's what needs to be applied to the db to revert the /internalblogs/ change: UPDATE wp_blogs SET path = '/' WHERE blog_id = 1; UPDATE wp_1_options SET option_value = 'http://blogs.collab.webdev.redhat.com/' WHERE option_name in ('siteurl', 'home') and option_value like '%blogs.collab.webdev%'; update wp_1_options set option_value = '/blog/%year%/%monthnum%/%day%/%postname%/' where option_name = 'permalink_structure'; Then need to alter the RedirectMatch to point /internalblogs/ stuff back to the root. Silly me :(
Closing legacy junk.