What is the Redirect Rule for corresponding https urls to new domain with the same https urls?
-
2 sites have the same urls but the owner wants just the 1 site. So I will be doing a 301 redirect with .htaccess from
https://www.example.co.uk/sportsbook/SOCCER/today/
redirecting to
https://www.example.com//sportsbook/SOCCER/today/
There are a lot of urls that are the same, so I was wondering what the rule is to put in the file please that will change them all to the corresponding urls?
Would this be correct?...
RewriteEngine on
RewriteCond %{HTTPS_HOST} ^example.co.uk [NC,OR]
RewriteCond %{HTTPS_HOST} ^www.example.co.uk [NC]
RewriteRule ^(.*)$ https://example.com$1 [L,R=301,NC]Or would a simple rule like this work... redirect 301 / http://www.new domain.com/
If not correct could you please give me the correct rule, thanks!
Then of course doing a change of address of address in webmaster tools after.
Also... do I still need to do the forwarding from the https://www.example.co.uk/ domain provider after as well?
Many thanks for your help in advance.
-
Anyone? lol
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
How long will old pages stay in Google's cache index. We have a new site that is two months old but we are seeing old pages even though we used 301 redirects.
Two months ago we launched a new website (same domain) and implemented 301 re-directs for all of the pages. Two months later we are still seeing old pages in Google's cache index. So how long should I tell the client this should take for them all to be removed in search?
Intermediate & Advanced SEO | | Liamis0 -
Consolidating two separate domains and redirecting towards a new replatformed domain
A client has two different sites selling the same products with the same content, they would like to replatform onto Magento while redirecting those 2 sites to the new URL. The question is, besides monitoring the 301 redirects is there anything else to take into consideration when consolidating two sites into one new site?
Intermediate & Advanced SEO | | RocketWeb0 -
New URL Structure caused virtually All rankings to drop 5 to 10 positions in latest report ?.. Is this normal
Hi All, We changed out url structure on our website to both reduce both the size of our category url structure (reduce the number of layers '/ ' ) and also to replace the underscores we originally had to hyphens... We did this during a new site design. Anyway we relaunched it a week ago. We did the 301 redirects from old to new , new site maps etc, and the latest moz ranking report is showing most of them dropping 5 to 10 positions i.e from 3rd to 10th etc... Is this something to be expected , and then it should recover or should this be telling me alarm bells. I would have expected not such a negative shift in all my rankings ?.. Anyone thoughts of this would be greatly appreciated... thanks Pete .
Intermediate & Advanced SEO | | PeteC120 -
Web developer won't 301 redirect to my new website....what can I do?
I want to come away from our third party web developer and use a new website with different web developers, however the web developer wont 301 redirect the old url's to the new ones. Is he required to do this by law? Is there away of doing the 301 redirects without him? Any advice would be much appreciated. Many thanks,Tom
Intermediate & Advanced SEO | | CoGri0 -
Redirecting a working dynamic URI to a new static format
Hi all I am having some issues rearding url rewrites and 301 redirects with 1 and 1 hosting and am unsure of the best approach. The website is a custom made shopping cart system with categories and products. The current urls for categories are : index.php?l=product_list&c=1 The new url format required is : /banner-stands After a little bit of research I added the following into the htaccess file; Options +FollowSymlinks
Intermediate & Advanced SEO | | vividwebdesign
AddType x-mapp-php5 .php RewriteEngine On RewriteBase / RewriteRule ^banner-stands/?$ index.php?l=product_list&c=1 [R=301,NC,L] Which works but I have a few questions Question 1: Is this the best approach as there are 55 categories and 179 products to write redirects for Question 2: Or is it better to firstly add id=banner-stands into the url and then create 301 redirects to the new url and then rewrite the url. Thanks0 -
Redirecting 2 aged site to brand spanking new one
Does 301 redircting 2 aged domain to a new one have a compounding effect? Ive redirected domain #1 to teh new site and my new domain has now jumped to position 6 on Google for the keyword. I have noticed that the sites above me are all aged domains and some with very few backlinks. Number 1 is 4 years old and 20 backlinks, thats it! I am wondering, if I redirected a 11 year old domain that is in the same niche, but never really targeteed that same keyword, would that bump my site even higher? Obviously i am building quality backlinks to the new domain and making sure these are hard to get high quality backlinks. Thanks for your help guys
Intermediate & Advanced SEO | | JohnPeters0 -
Redirect gateway domain to main domain?
We have following scenario: Our main website - www.esedirect.co.uk which gets a 1800 visits a day with around half of those from organic search. It's been around since 2004. Our original website - www.ese.co.uk which gets around 30 visits a day and really is nothing more than a doorway page with links to the above site and couple of other sites that belong to the same company. This is an old domain that's had content since 1997 and has good domain authority with some good links. We are considering doing a 301 redirect from www.ese.co.co.uk to www.esedirect.co.uk to redirect the link juice. I welcome opinions to any possible negative effects this could give and how beneficial doing this will be. Thanks, Lee
Intermediate & Advanced SEO | | ese0 -
How important is it to canonicalize mobile URLs to desktop URLs?
I know many SEO's prefer a stylesheet and single URL, but if you use m.domain.com, do you canonicalize to your desktop URLS?
Intermediate & Advanced SEO | | nicole.healthline0