WordPress.org

Ready to get started?Download WordPress

Forums

Turn a page into a subdomain (6 posts)

  1. Arash
    Member
    Posted 3 years ago #

    Is it possible to have a page shown as a subdomain.

    For example haveing http://www.mydomain.com/mypage to be mypage.mydomain.com

    RewriteEngine on
      RewriteRule (.*)  http://www.mydomain.com/mypage$1 [P,L]
  2. popper
    Member
    Posted 3 years ago #

    You could use a CNAME record, probably.

  3. Arash
    Member
    Posted 3 years ago #

    I don't really see how CNAME can be used to set a page as subdomain. Could you please explain?

  4. popper
    Member
    Posted 3 years ago #

    I think I might have been wrong on that one, sorry. If you need to map a bunch of subdomains instead of just one, maybe the best idea would be adding a wildcard domain? Here's a couple ideas:

    http://stackoverflow.com/questions/586129/create-subdomains-on-the-fly-with-htaccess-php
    http://www.phpfreaks.com/forums/index.php?topic=207016.0

  5. Arash
    Member
    Posted 3 years ago #

    Thank you julia,

    The problem is not creating subdomains, but changing a page to a subdomain and keeping all the wordpress content.

    So turning

    http://wordpress.org/showcase/

    into

    http://showcase.wordpress.org/

    And still keeping all the content and functionality within wordpress.

    Up to 2.9.2 there was a working plugin for it
    http://wordpress.org/extend/plugins/wordpress-subdomains/

    But it no longer works in WP 3.0

  6. zapiekana
    Member
    Posted 2 years ago #

    Hi,
    I'm having the same issue...
    Has anybody found a solution yet?
    thanks,
    mike

Topic Closed

This topic has been closed to new replies.

About this Topic