Support » Plugins and Hacks » WP Subdomains » Error For Subdomain

Error For Subdomain

  • 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
    $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


  • The topic ‘Error For Subdomain’ is closed to new replies.
Skip to toolbar