Sorry to clog up the issue queue but here's another one.

I have the module set up to generate subdomains for users/node authors and have adjusted the pathauto settings for users to "[subdomain].domain.com" (using pathauto 2.3) but the URLs generated are "http://domain.com/subdomain.domain.com".

I saw this issue was posted before and resolved but the original poster never actually said what solved it! Does anyone have any ideas?

Comments

setvik’s picture

set the path to "[subdomain]"

deadman’s picture

Just tried that, but on creating a new user it generates the URL: http://domain.com/subdomain

setvik’s picture

Did you edit pathauto settings and set the "tilde ~" character to "No Action: do not replace"?

deadman’s picture

Yes that's set, I also double checked all the patches and they seem fine too. Pathauto is version 2.3 so that shouldn't be causing any issues.

vwX’s picture

Same issue here, can't get it to rewrite. Subdomains return page not found.

setvik’s picture

On the Subdomains settings screen, do all the "Subdomain Prerequisites" checks pass?
If not, which ones fail and what is the text shown below each one?

setvik’s picture

Status: Active » Postponed (maintainer needs more info)
vwX’s picture

Fixed. Not sure what I did to get it working, but I think it may have been a conflict with the path auto settings. Not the character filter, but the paths themseleves. If I can get it to re-occur I'll do some more debugging.

deadman’s picture

Still an issue for me. All the tests pass, but I had to modify subdomain_debug.inc to use cURL instead of file_get_contents as my host doesn't support file_get_contents from a URL.

previous to that, it failed on the webserver section, showing nothing at all under HTTP_HOST, QUERY_STRING etc. Using cURL instead, everything passes as it should do.

I don't think this is the cause though as visiting http://subdomain-test.domain.com/subdomain/test with a browser shows the correct output.

deadman’s picture

It seems there's an issue with the tilde. I've managed a temporary fix by changing the pathauto path settings from "[subdomain]" to "~[subdomain]" and everything now works as it should.

I'm not sure where the tilde is getting removed/not added but maybe this will help pinpoint the problem

setvik’s picture

Do you have global redirect installed?

I ran across a similar issue with the global redirect having issues with the tilde "~" character.

deadman’s picture

no it's never been installed. It's a mystery why it's doing that, but my edit above seems to work fine. I've had the module running nicely since my last post and haven't noticed anything broken yet.

setvik’s picture

Status: Postponed (maintainer needs more info) » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

Anonymous’s picture

nvm