{"id":841218,"date":"2008-08-24T02:05:08","date_gmt":"2008-08-24T02:05:08","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/wp_rewrite-again\/"},"modified":"2016-08-19T02:00:45","modified_gmt":"2016-08-19T02:00:45","slug":"wp_rewrite-again","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/wp_rewrite-again\/","title":{"rendered":"WP_Rewrite (Again)"},"content":{"rendered":"<p>I am trying to revive an old plugin which was last updated for version 2.1.  The general idea is to make pages into subdomains using Apache&#8217;s wildcard subdomains.<\/p>\n<p>The page rule I currently have is (.+?)(\/[0-9]+)?\/?$==&gt;index.php?pagename=$matches[1]&#038;page=$matches[2]<\/p>\n<p>However, this seems to only capture what&#8217;s after HTTP_HOST. Is it possible to parse http:\/\/page1.mydomain.com into http:\/\/www.mydomain.com\/?pagename=page1?<\/p>\n<p>Thanks a million!<\/p>\n","protected":false},"template":"","class_list":["post-841218","topic","type-topic","status-closed","hentry","topic-tag-rewrite-rules","topic-tag-wp_rewrite"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/841218","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/841218\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=841218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}