Error For Subdomain
-
Warning: readfile(https://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= ‘https://’ . $_SERVER[‘HTTP_HOST’] . ‘/’;
$HomepageLinkWithoutSubdomainName=str_replace($SubdomainName, ”, $HomepageLink);
$HomepageLinkFULL=$HomepageLinkWithoutSubdomainName . ‘category/’ . $foldername;
readfile($HomepageLinkFULL); ?>….
Is there anything I am missing?
Love and light
https://www.ads-software.com/extend/plugins/wordpress-subdomains/
- The topic ‘Error For Subdomain’ is closed to new replies.