admin管理员组文章数量:1389352
I was awarded with a task to redirect all the pages of old website (build on typo3 v.8) to the new domain. This needs to be 301 (permanent redirects) 1:1 redirect. So each page needs to be redirect to the same page living on the other domain. Example a/contact -> 301 -> b/contact.
I am using url_forwarding extension for typo3. I managed to redirect all 120 pages only to notice that the last one / or the home page url won't redirect to the new domain. Would anybody know how to do this using url_forwarding? Thank you kindly for all your help.
I was awarded with a task to redirect all the pages of old website (build on typo3 v.8) to the new domain. This needs to be 301 (permanent redirects) 1:1 redirect. So each page needs to be redirect to the same page living on the other domain. Example a/contact -> 301 -> b/contact.
I am using url_forwarding extension for typo3. I managed to redirect all 120 pages only to notice that the last one / or the home page url won't redirect to the new domain. Would anybody know how to do this using url_forwarding? Thank you kindly for all your help.
Share Improve this question edited Mar 17 at 13:57 Heinz Schilling 2,3174 gold badges23 silver badges36 bronze badges asked Mar 15 at 13:27 xyz83242xyz83242 8263 gold badges18 silver badges33 bronze badges1 Answer
Reset to default 3That sounds like a classic domain redirect to me. You don't need an extension for that. You can add the following redirect in the .htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^olddomain$ [OR]
RewriteCond %{HTTP_HOST} ^www.olddomain$
RewriteRule (.*)$ https://www.newdomain/$1 [R=301,L]
</IfModule>
See https://wpscholar/blog/redirect-old-domain-to-new-domain-via-htaccess/
Explanation: All requests to the old domain with or without www prefix are redirected to the new domain with server code 301. The page path is appended with $1.
本文标签: htaccesstypo3 URL Forwardingunable to forward home page to external linkStack Overflow
版权声明:本文标题:.htaccess - typo3 URL Forwarding - unable to forward home page to external link - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744613405a2615790.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论