Closed (outdated)
Project:
Subdomain
Version:
6.x-1.4
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Oct 2008 at 02:54 UTC
Updated:
18 Jul 2020 at 09:28 UTC
Jump to comment: Most recent
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
Comment #1
setvik commentedDo 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?
Comment #2
chriszz commentedIn 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.
Comment #3
chriszz commentedWhat do you mean by multiple locals or locations? Multiple languages or domains? Both no!
Comment #4
fossie commentedI 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
Comment #5
setvik commentedThe "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?
Comment #6
avpadernoI am closing this issue as it's for a Drupal version no longer supported.