[TYPO3-english] Home page url
affleckc at frontierpitts.com
Mon Feb 13 17:01:05 CET 2012
> On 02/13/2012 02:08 PM, Christopher Affleck wrote:
> > Hi there,
> > I am developing a site using Typo3 and have started with the tutorials
> > and they all seem to recommend using a shortcut as the root page.
> > So I have the following be structure:
> > Root (Shortcut to id=2)
> > |- Home (id=2)
> > |- Category 1 etc...
> > However I would like the Home page to be domain.org and not a redirect
> > to domain.org/home/ , which would be the normal way to achieve this?
> handling of Shortcuts has been changed with TYPO3 4.6.
> Instead of showing the content of the directed page under the current URL
> you are really redirected to that page (and generated links show directly to
> the directed page) this was done to get better results with seachengines. it
> avoids 'duplicate content'.
> with this change the reccomandation about domain-root shortcutting to
> home is void.
> you have to do it the other way around, with the discomfort of very special
> Typoscript configuration in the tree root which normaly will be inherited into
> the tree.
> - include different typoscript for following levels
> - have conditions with root-page-uid
> - build a FE-layout depending on layout-value of page (FE-layout or
> having this in mind from the beginning it is not much discomfort.
> changing a running page after an update to 4.6 can be very inconvenience.
> solutions outside of TYPO3:
> - you may define some 'magic' in .htaccess with some rewrites wich
> exchange http://my.domain.tld with http://my.domain.tld/home [¹]
> - ignore it, as anyway no visitor cares about the exact wording in URLs
> (Bookmarking or link-forwarding is done mostly with copy&paste)
> [¹] = I don't know wether this is possible without catching yourself in
> redirecting loops
For ease of administration I've opted to shortcut Home to the root page
and using the following to do use a different HTML template on the home page.
# Home Page Only
[globalVar = TSFE:id = 1]
template.file = fileadmin/domain.org/home.tmpl
More information about the TYPO3-english