I install new d 6.5
default .htaccess

setup wirdcard subdomain ok.

settings.php -> link guide in .readme.txt
modules/pathauto
modules/translative

I can access all urls
example
abc.examaple.com/register
xyz.examaple.com/user
aaa.examaple.com/node/123

but when enable subdomain

every urls fail with 404

url not found

thanks

Comments

setvik’s picture

Status: Active » Postponed (maintainer needs more info)

Do all the subdomain prerequisite tests pass? (Sign in as the admin user and go to Admin -> Url Settings -> Subdomain settings to check). If not, which fail and what does it say?

Are you using multiple locales/locations on your drupal site?

chriszz’s picture

In my case i have the same problem. a prerquisite tests pass - everything works. But drupal-URLs- such as /node/84 oder /user or whatever only work from the base url - BUT not from subdomains (sub.example.com/user fails - while example.com/user works). Once subdomain is in place and working only URLS definied in pathauto will work with subdomains. This is deadly when using relative URLS!!!

I guess subdomain should just forward any unknown url to the base url - and than it would be fine.

chriszz’s picture

Status: Postponed (maintainer needs more info) » Active

What do you mean by multiple locals or locations? Multiple languages or domains? Both no!

fossie’s picture

I have a simular issue, when pathauto enabled and setup to use for example the author as subdomain,
authorname.testdomain.com/title-raw works just fine.

But when I try to access www.testdomain.com/user, it doesn't work, in the logs I see the www is also passed as subdomain (and I checked this to not treat as as sub, like static). The url is : testdomain.com/~www/user (which of course doesn't exist).

How can this be bypassed?
- or check if the url doesn't return a 404 and try to give it on the main domain
- secondly how does the 'www' and 'static' work to not be used as a subdomain (like for example ftp. ...)?

TIA,
Fossie

setvik’s picture

Status: Active » Postponed (maintainer needs more info)

The "www" is fixed in CVS and should be available in tomorrow's 6.x dev release.

If someone can test and leave a comment with their results, I'd appreciate it.

@Christian: yes, /user will only work from the base domain; it will not work on any subdomains. If you use Drupal's built in "l" function (http://api.drupal.org/api/function/l) to generate all your links (e.g. print l('My profile', 'user')), the correct url will be generated and displayed regardless of whether the user is viewing a page on the base domain or one on a subdomain page.

Hope that helps.

@toitimhcm : I need more information to help you. Is this still an issue?

avpaderno’s picture

Assigned: » Unassigned
Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (outdated)

I am closing this issue as it's for a Drupal version no longer supported.