简体   繁体   English

TYPO3从另一个域重定向到根页面

[英]TYPO3 redirection to root page from another domain

A TYPO3 beginner here with basic knowledge of TypoScript. TYPO3初学者,具有TypoScript的基本知识。 I have got an existing TYPO3 website at www.example-long-name.com , which automatically redirects to www.example-long-name.com/fr . 我在www.example-long-name.com上已有一个TYPO3网站,该网站会自动重定向到www.example-long-name.com/fr

Somebody created a new domain with a shorter, more practical name www.example.com , and this new domain has only one purpose: redirect to www.example-long-name.com root page. 有人用更短,更实用的名称www.example.com创建了一个新域,而这个新域仅具有一个目的:重定向到www.example-long-name.com根页面。

The problem is: some script automatically adds "/fr" and the redirection ends up with www.example.com/fr in the URL bar, which drops the www.example-long-name.com 404 error. 问题是:某些脚本会自动添加“ / fr”,并且重定向最终在URL栏中以www.example.com/fr出现,这将导致www.example-long-name.com 404错误。

I don't have access to www.example.com domain control panel, but the hosting company tells me their config is OK, and the error comes from TYPO3 configuration. 我没有访问www.example.com域控制面板的权限,但是托管公司告诉我他们的配置正确,并且错误来自TYPO3配置。

Is it possible to correct this in the TYPO3 backend (realurl) or in .htaccess? 是否可以在TYPO3后端(realurl)或.htaccess中更正此错误? Where should I proceed ? 我应该在哪里进行?

EDIT: TYPO3 version: 4.5.30 编辑:TYPO3版本:4.5.30

I actually found where to edit redirections, you can do it in TYPO3 backend: you need to go to the root element of your website tree , in List view . 我实际上找到了在哪里编辑重定向,您可以在TYPO3后端中进行:您需要在列表视图中转到网站树根元素 There in the Domains section, you can add alternative domain names, in my case: example.com and www.example.com. 在“域”部分,您可以添加备用域名,例如:example.com和www.example.com。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM