WordPress.org

Ready to get started?Download WordPress

Forums

WP Subdomains
Error For Subdomain (1 post)

  1. cosmicdreammachine@gmail.com
    Member
    Posted 1 year ago #

    Warning: readfile(http://xxx.xxx.net/category/xxx.xxx.net) [function.readfile]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/infinitedreams/xxx.xxx.net/index.php on line 9

    This is what happens when I access the subdomain, permission of folder and index.php for the subdomain is 755, permalink structure is set correctly, index.php in the subdomain folder contains the code of the readme for categories, which is
    <?php
    $foldername=basename(getcwd());
    $SubdomainName=basename(getcwd()) . '.';
    $HomepageLink= 'http://' . $_SERVER['HTTP_HOST'] . '/';
    $HomepageLinkWithoutSubdomainName=str_replace($SubdomainName, '', $HomepageLink);
    $HomepageLinkFULL=$HomepageLinkWithoutSubdomainName . 'category/' . $foldername;
    readfile($HomepageLinkFULL); ?>

    ....

    Is there anything I am missing?

    Love and light

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by cosmicdreammachine@gmail.com
  • This topic is not resolved
  • WordPress version: 3.0.1

Tags

No tags yet.