Feature #50319
closedimprove domain handling
50%
Description
- www
- https
Right now you need to add at least two domain records. One for redirecting to the desired domain with or without 'www' and then the needed domain-record with your domain as string. I think every admin would do this due to duplicate content issues.
p.e.:- typo3.org --> www.typo3.org (Redirect 301)
- www.typo3.org
- http//typo3.org (the http://-prefix is incomplete)
- let the user decide whether to prefer www or not
- let the user decide whether to prefer https or http
- add a subdomain field to cover full subdomain support
- js-validate the domain (blank without www and http and so on) (absRefPrefix should go to another field)
- implement the redirection rules (first: http or https and thenn www or not)
- typo3 should build the final domain-string by stripping stuff and rearranging
Files
Updated by Philipp Gampe over 11 years ago
- Category set to Miscellaneous
- Status changed from New to Accepted
- Priority changed from Should have to Could have
- % Done changed from 0 to 50
- Complexity set to medium
www.example.com and example.com are completly distict domains with no relation to each other. I suggest to not add magic like this as this heavily depends on the server settings.
A domain does not have a protocol as this is not important for domains. The distinction between protocols is done on page level.
We could think of automatically sanitizing any protocol away from the domain, but this should go into a new issue.
For subdomains, you should checkout this change request:
https://review.typo3.org/#/c/9263/
Updated by Philipp Gampe over 11 years ago
- Status changed from Accepted to Needs Feedback
Updated by Ralle Büchnitz over 11 years ago
I think that the current handling of domains could be done easier.
So that was just my first approach how to solve it. And in this particular case from a user-perspective.
I do know that the www-subdomain is not logically connected to the tld. But people are used to it. And I think many domains perform a redirect to avoid duplicate content on search engines either from www.whatever.com to whatever.com or the other way round.
(I don't know a site where www.whatever.com has other content than whatever.com.)
Right now you have full control of domain handling.
Maybe the 'www-subdomain'-section should be allowed to be deactivated/activated. But I think the user-interface is getting to complicated?!
What do you think?
Updated by Philipp Gampe over 11 years ago
Such redirect should be done on webserver level (or .htaccess).
IMHO such a feature would make the code more complicated and error prone without much benefit for most installations. Also this would be too much magic.
Updated by Alexander Opitz almost 11 years ago
As Philipp wrote, this should go in the .htaccess or server configuration. No need to start a TYPO3 instance, get records from a database to only redirect a user to another domain.
Updated by Alexander Opitz over 10 years ago
- Status changed from Needs Feedback to Closed
No feedback within the last 90 days => closing this ticket.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.
Updated by Helmut Hummel almost 10 years ago
Taken into account in #64674.
The issues are not linked on purpose, so the refactoring ticket does not get bloated with relations.