WP Subdomains
Error For Subdomain (1 post)

  1. cosmicdreammachine@gmail.com
    Posted 3 years 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
    $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


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Subdomains
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

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


No tags yet.