Hi,

I've followed the installation instructions but I'm still having trouble getting the module working. The "webserver" section on the settings page shows the following:

file_get_contents(http://subdomain-test.domain.com/subdomain.com/test) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/username/domain.com/modules/subdomain/subdomain_debug.inc on line 47.

also, the http host, query string etc are all blank. My host has enabled wildcard dns settings for my domain and I've tried using a fresh .htaccess file with the patch applied in case one of my other rewrite rules was affecting anything but I still get the same result.

I've also noticed that if I visit a subdomain without adding "index.php" to the address I receive a 404 error. ie http://sub.domain.com will give a 404 whereas http://sub.domain.com/index.php works fine.

Any help would be much appreciated.

Thanks

Comments

deadman’s picture

ok, I've managed to get the tests to all work by adjusting the "file_get_contents" function on line 47 of subdomain_debug.inc to use cURL instead but I think the htaccess part still isn't working quite as it should.

I set up a test php file that outputs HTTP_HOST, QUERY_STRING, and REQUEST_URI but the query string is blank when visiting the file on a subdomain (whereas it should obviously be set by the rewrite rule).

edit: Ignore that, obviously the query string wouldn't be set just be visiting my test file!

Still can't get this one working though, even though all the tests say it should be fine.

deadman’s picture

Status: Active » Closed (fixed)

update: after more fiddling I think the .htaccess rules are working as they should (had to adjust their position in the .htaccess file).