Changeset 3113304
- Timestamp:
- 07/05/2024 09:26:58 PM (3 weeks ago)
- Location:
- page-as-subdomain-lite/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
page-as-subdomain-lite/trunk/inc/class.PASFsubpageSubdomain.php
r3022926 r3113304 127 127 128 128 129 $request = add_query_arg( array( 130 'field' => $spages1->post_name, 131 'purchase_code' => 'free', 132 'rules_type' => 'page_subdomain_lite_rules', 133 'refer' => site_url(), 134 'email' => $admin_email, 135 ), 'https://gigsix.com/multihelpdesk.com/integrate.php' ); 136 137 138 $response = wp_remote_get($request); 139 try { 140 // Note that we decode the body's response since it's the actual JSON feed 141 $rules = json_decode($response['body'],true); 142 } catch ( Exception $ex ) { 143 $rules = array (); 144 } // end try/catch 129 $field = $spages1->post_name; 130 $rules["trackback/?$"] = "index.php?pagename=".$field."&tb=1"; 131 $rules["feed/(feed|rdf|rss|rss2|atom)/?$"] = 'index.php?pagename='.$field.'&feed=$matches[1]'; 132 $rules["(feed|rdf|rss|rss2|atom)/?$"] = 'index.php?pagename='.$field.'&feed=$matches[1]'; 133 $rules["page/?([0-9]{1,})/?$"] = 'index.php?pagename='.$field.'&paged=$matches[1]'; 134 $rules["comment-page-([0-9]{1,})/?$"] = 'index.php?pagename='.$field.'&cpage=$matches[1]'; 135 $rules["wc-api(/(.*))?/?$"] = 'index.php?pagename='.$field.'&wc-api=$matches[2]'; 136 $rules["$"] = "index.php?pagename=".$field; 137 $rules['([^/]+)/?$'] = 'index.php?pagename='.$field.'/$matches[1]'; 145 138 return $rules; 146 139 } -
page-as-subdomain-lite/trunk/inc/init.php
r3022926 r3113304 95 95 96 96 $newrules = $obj_subpage->getpageRewriteRules(); 97 $rules = $newrules + $rules; 97 $rules = (is_array($newrules) && is_array($rules)) ? array_merge($newrules, $rules) : $rules; 98 98 99 } 99 100 -
page-as-subdomain-lite/trunk/page.php
r3022926 r3113304 6 6 * Description: A WordPress Plugin which Convert Single Page into subdomain. 7 7 * Plugin URI: https://wordpress.org/plugins/page-as-subdomain-lite/ 8 * Version: 2.5. 18 * Version: 2.5. 9 9 * Author: alisaleem252 | Gigsix Studio 10 10 * Author URI: https://gigsix.com/ -
page-as-subdomain-lite/trunk/readme.txt
r3071420 r3113304 5 5 Requires at least: 3.0.1 6 6 Tested up to: 6.5.2 7 Stable tag: 2.5. 17 Stable tag: 2.5. 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 Convert page into Subdomain, i t will just require a subdomain DNS entry or wildcard entry, instanly convert any wordpress page to subdomain, i.e page-name.site.com11 Convert page into Subdomain, instanly convert any wordpress page to subdomain, i.e page-name.site.com 12 12 13 13 == Description ==
Note: See TracChangeset
for help on using the changeset viewer.