Bug #33926
closedRedirect problem with removeing REQUEST_URI for home
0%
Description
Sitetree
+ Home (Shortcut)
+ Home
+ Page2
++ Page3
...
url is
test.tdl -> redirect to (htaccess)
www.test.tdl -> redirect to
www.test.tdl/home/
I know some reposts exists but i read mailinglist and other reports, but never this specific problem.
I want in 4.6 www.test.tdl as landing page and not a subsite.
-> Breadcrumbs in google (Microtagging) / -> test.tdl > subpage > subsubpage
e.g
https://www.google.com/search?q=lasagna%20pasta%20recipe
allrecipes.com › Recipes › Pasta
I understand the redirect reason, in 4.5 i use is_rootsite + ods_seo and redirect function with 301 on. I have the redirect, only the landingpage is fine.
I found nowhere a solution and no site with test.tdl/ and 4.7. i tried the introduction package.
if i redirect anyway i get an loop.
Updated by Stefan Galinski almost 13 years ago
- Status changed from New to Needs Feedback
Just merge the shortcut and homepage as one root. If you have any special typoscript stuff for the homepage that isn't needed for the other pages, you must take another step: Use two typoscript templates. One for the homepage and one for the subpages. You can include the second one as the template for the next levels into the first one. Also you should force unsetting of the setup/constants in the second template as it should be considered as a new typoscript root. Exactly this solution works on two sites that I manage (e.g. www.df.eu). I hope that I didn't misunterstood your problem. :-)
Updated by Xaver Maierhofer almost 13 years ago
My fix in source is check for is_rootsite. But its not a clean and nice solution.
file: t3lib/utility/class.t3lib_utility_http.php
public static function redirect($url, $httpStatus = self::HTTP_STATUS_303) { if(!$GLOBALS['TSFE']->page['is_siteroot']){ header($httpStatus); header('Location: ' . t3lib_div::locationHeaderUrl($url)); exit; } }
Updated by Xaver Maierhofer almost 13 years ago
i like my 2 sites. first site has global information content and every subpage gets it.
And a lot of typo3 have this tree and after a update you have a new url.
Maybe a little setting in TS or site for no redirect mode or new option in select box.
Updated by Stefan Galinski almost 13 years ago
Hi Xaver,
My solution just simplifies the configuration as just one page is needed afterwards and you can still define all your necessary typoscript for your subpages on this page. IMHO an exclusion for the rootpage for this important feature/behaviour isn't an alternative as there is a really simple solution available. Maybe a small XCLASS extension could fit the needs? :-)
Updated by Xaver Maierhofer almost 13 years ago
Hi Stefan,
i have 1 TS file in ftp. That is everything ;)
Maybe a small XCLASS extension could fit the needs? :-)
I will look into it, if i have time. Maybe patch ods_seo with canonical url and everything.
But i still think this is a little bit inflexible, NO way without a extra extension and a automatic redirect.
Updated by Alexander Opitz about 11 years ago
Hi,
as this issue is very old. Does the problem still exists within newer versions of TYPO3 CMS (6.1)?
Updated by Alexander Opitz almost 11 years ago
- Status changed from Needs Feedback to Closed
- Is Regression set to No
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.