问题原文
原帖链接 · Frondor · CC BY-SA 3.0
Let's say I have these two domains:
example.com.uyexample.uy
My goal is to set a proper domain's forward according to SEO best practices using a 301 Redirect, in order to enforce my users to be always browsing my site at www.example.com.uy, even when they come from example.uy and keeping the rest of the URL just like /cat/item/1?qwe=rty.
I'm using CloudFlare with their free package, their Page Rules seems to be what I need but I can't figure out how to properly set the forwarding. Perhaps I need to configure something at my domain registrar panel as well.
An example of the kind of redirection I want to achieve is:
http://example.uy/cat/item/1?qwe=rty>http://www.example.com.uy/cat/item/1?qwe=rty
Sub domain example:
http://shop.example.uy/cat/item/1?qwe=rty>http://shop.example.com.uy/cat/item/1?qwe=rty
I have tried:
example.uy/*- Forwarding to:
http://www.example.com.uy/$1 - Forwarding type:
302 Temporary
Sadly this is without success, because my .uy domain has no settings yet, simply because I don't know if I should use the same data I've used previously for .com.uy.
已采纳解答
原帖链接 · Ricardo Umpierrez · CC BY-SA 3.0
The way that I do is, add the two domains to cloudflare, redicted it normally to the hosting. On the hosting cpanel, add both domains, and set on cpanel that this site redirect permanent to your main site, so if any day has to change something, is only on the web provider end.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
