Title: WP_Rewrite (Again)
Last modified: August 19, 2016

---

# WP_Rewrite (Again)

 *  Resolved [giladg](https://wordpress.org/support/users/giladg/)
 * (@giladg)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/wp_rewrite-again/)
 * 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’s wildcard subdomains.
 * The page rule I currently have is (.+?)(/[0-9]+)?/?$==>index.php?pagename=$matches[
   1]&page=$matches[2]
 * However, this seems to only capture what’s after HTTP_HOST. Is it possible to
   parse [http://page1.mydomain.com](http://page1.mydomain.com) into [http://www.mydomain.com/?pagename=page1](http://www.mydomain.com/?pagename=page1)?
 * Thanks a million!

The topic ‘WP_Rewrite (Again)’ is closed to new replies.

## Tags

 * [rewrite rules](https://wordpress.org/support/topic-tag/rewrite-rules/)
 * [WP_Rewrite](https://wordpress.org/support/topic-tag/wp_rewrite/)

 * 0 replies
 * 1 participant
 * Last reply from: [giladg](https://wordpress.org/support/users/giladg/)
 * Last activity: [17 years, 11 months ago](https://wordpress.org/support/topic/wp_rewrite-again/)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
