{"id":158,"date":"2014-05-22T19:51:48","date_gmt":"2014-05-22T19:51:48","guid":{"rendered":"http:\/\/szapp.com\/?p=158"},"modified":"2014-05-22T19:51:48","modified_gmt":"2014-05-22T19:51:48","slug":"wordpress-multisite-redirect-loop","status":"publish","type":"post","link":"https:\/\/wsbj.com\/sorabji\/2014\/05\/22\/wordpress-multisite-redirect-loop.html","title":{"rendered":"WordPress MultiSite Redirect Loop"},"content":{"rendered":"<p>\t\t\t\tI never quite\u00a0solved this problem as\u00a0thoroughly as I would have liked, but it seems to work.<\/p>\n<p>According to various documentations a subsite of a WordPress Multisite (WPMS) can be assigned a default directory under which its content will appear. This would be handy in analyzing access_log files, as\u00a0it is not always obvious which site is getting pageviews. This is especially true of the sites&#8217; top index page. The problem with creating this subdirectory through WPMS&#8217;s Site Install process is that it creates an infinite redirect loop, probably on account of some .htaccess and\/or cookies vagary with which I am unfamiliar.<\/p>\n<p>Though not as\u00a0righteous as figuring this out to its core I had a eureka moment. Just go to sites&#8217;\u00a0Settings -&gt; Permalink screens and create custom structures that begin with the desired subdirectories. Much easier than wrestling with .htaccess and whatever\u00a0other symptoms lurk beneath this annoying problem. It is not foolproof, but at least now I can tell which pages and sites\u00a0are getting what traffic at the access_log level.\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I never quite\u00a0solved this problem as\u00a0thoroughly as I would have liked, but it seems to work. According to various documentations a subsite of a WordPress Multisite (WPMS) can be assigned a default directory under which its content will appear. This would be handy in analyzing access_log files, as\u00a0it is not always obvious which site is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[32],"tags":[],"class_list":["post-158","post","type-post","status-publish","format-standard","hentry","category-unrepentant","et-doesnt-have-format-content","et_post_format-et-post-format-standard"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paumAn-2y","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/wsbj.com\/sorabji\/wp-json\/wp\/v2\/posts\/158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wsbj.com\/sorabji\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wsbj.com\/sorabji\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wsbj.com\/sorabji\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wsbj.com\/sorabji\/wp-json\/wp\/v2\/comments?post=158"}],"version-history":[{"count":0,"href":"https:\/\/wsbj.com\/sorabji\/wp-json\/wp\/v2\/posts\/158\/revisions"}],"wp:attachment":[{"href":"https:\/\/wsbj.com\/sorabji\/wp-json\/wp\/v2\/media?parent=158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wsbj.com\/sorabji\/wp-json\/wp\/v2\/categories?post=158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wsbj.com\/sorabji\/wp-json\/wp\/v2\/tags?post=158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}