Bug 455801
| Summary: | cannot get to single-post-entries for main blogs.corp.redhat.com blog | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] Red Hat Collaboration Applications | Reporter: | Bret McMillan <bretm> | ||||
| Component: | Wordpress | Assignee: | Monty Hood <mhood> | ||||
| Status: | CLOSED NOTABUG | QA Contact: | Sudhir Mallamprabhakara <smallamp> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | Backlog | CC: | bkrishna, rjaswal | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| URL: | https://blogs.corp.redhat.com/2008/06/16/internal-blogs-early-beta/ | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2010-06-23 19:31:17 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 466965 | ||||||
| Attachments: |
|
||||||
|
Description
Bret McMillan
2008-07-17 21:01:22 UTC
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. |