WordPress.org

Ready to get started?Download WordPress

Forums

WP Subdomains (Revisited)
"Subdomain Roots as Indexes" option breaks stuff (4 posts)

  1. Mordkanin
    Member
    Posted 1 year ago #

    If "Subdomain Roots as Indexes" is not checked, then you cannot use a page as a subdomain. It just redirects back to the home page.

    Either way, I can't access the children of pages that are subdomains. Should I be able to? If not, any thoughts on how to add it?

    http://wordpress.org/extend/plugins/wp-subdomains-revisited/

  2. BigBelly
    Member
    Posted 1 year ago #

    Either way, I can't access the children of pages that are subdomains.

    Have you solved this problem?

    I'm dealing with it too :-(

  3. Geet Jacobs
    Member
    Posted 1 year ago #

    I am in the same boat.

    WordPress pages:
    mysubdomain
    mysubpage *childof mysubdomain

    mysubdomain.domain.com = works
    mysubdomain.domain.com/mysubpage = page not found

    My Settings
    Activate Page Subdomains
    Subdomain Roots as Indexes

    mysubdomain Settings
    wps_page_subdomain = true

    Anyway to get sub pages to work?

  4. Geet Jacobs
    Member
    Posted 1 year ago #

    I solved this by adding some htaccess redirects, rather avoid that but it seems to be working for sub pages and sub sub pages so here ya go.

    RewriteCond %{HTTP_HOST} !www.domainname.com$ [NC]
    RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-]+).domainname.com$ [NC]
    RewriteRule (.*) index.php?pagename=%2/$1 [NC,QSA]

    Hopefully this will help someone else.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.