Not sure if this is a minor bug, or a misunderstanding on my side.
I have defined N virtual hosts in Apache, and I want to prevent users registering
from the "main" domain and from the "test" domain. My httpd configuration excerpt reads:
NameVirtualHost *:80
## MAIN DOMAIN
<VirtualHost *:80>
ServerName example.com
RewriteRule ^/user/register$ /content/help-registration [R]
</VirtualHost>
## TEST DOMAIN
<VirtualHost *:80>
ServerName test.example.com
RewriteRule ^/user/register$ /content/help-registration [R]
</VirtualHost>
On both domains, registration attempts are correctly redirected to the help page.
However for the main domain redirection (and only for it) I also get the unexpected "misspelling warning"
You have followed an incorrect link to this website. Please update your links and bookmarks to http://example.me/content/help-registration.
Comments
Comment #1
agentrickardWell, the history of that behavior change is here: http://drupal.org/node/293453
The logic of the message says: If the user tried to access a host that does not match the registered hostname (in Domain Access), then send them to the registered host and print the error.
Are both example.com and test.example.com registered as active domains with DA?
Comment #2
skizzo commentedIt has something to do with Path, as the problem disappears
just replacing "content/help-registration" with "/node/333".
I was going to disable path/pathauto in anyway... I leave
this issue open in case it contains any useful information.
Please close it if that is not the case.
[edit] yes, they are both configured as active domains
(and example.com is indeed the main domain)
Comment #3
agentrickardSo it is a mod-rewrite issue, I think. It looks like you are asking Apache to lookup something that Drupal doesn't recognize. Odd.
Closing, as I think this is a special case.
Comment #4
scedwar commentedHmm. Having prompted the original request for this feature, I'm ashamed to say we've only just manage to roll out the updates to Domain. We now get the error message on our primary domain homepage: http://www.charityrallies.org (try it!).
Domain 0 is configured with the full domain name,so I'm at a loss as to how this error could be generated. The only thing I can think is that our homepage is a panel - might this be the cause?
It would be useful if Domain could write a log entry for any incorrect URLs (including the referrer) to aid in debugging and link maintenance.
Comment #5
skizzo commentedNot much helpful... but I can't reproduce it anymore on my test site.
I have re-enabled pathauto and also tried to play around with mod rewrite.
No way... it plays nicely! :-) I am currently on Domain Access 5.x-1.8
edit: now I don't see the error anymore on www.charityrallies.org !!!
then I typed charityrallies.org, got redirected to www.charityrallies.org
and the error is there again!
Comment #6
scedwar commentedGoing to charityrallies.org should (correctly) give you the error. However, are you saying the value seems to be getting cached? If so that suggests a caching issue.
Comment #7
skizzo commentedI am not seeing it consistently. Most of the times the
error is there, but there have been (very few) instances
when it did not show up...
btw: in my site (where I do not see the error anymore)
the main domain is "example.com" and www is
stripped by DA's www prefix handling