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
-
Fetch As Google Redirect from HTTPS to HTTP
Hi Moz Community, We just launched a redesigned site and moved our blog from http://sparkline.motifinvesting.com to https://www.motifinvesting.com/blog. When I went to check the site today I noticed something strange. When I Fetch a Blog URL as Google it is redirecting from https to http AND dropping the / <post-id>from the end of the URL.</post-id> So for the URL https://www.motifinvesting.com/blog/cleantech-obama-romney/1494 I am getting the attached results when I Fetch as Google. When I access the same URL in my browser, I see a 200 status code and no redirect. Why would Google Bot show that the URL is being redirected? Thanks,
Intermediate & Advanced SEO | | motif_marketing
Breanna https://www.motifinvesting.com/blog/cleantech-obama-romney/1494 I7yQPza.png0 -
New blog post URLs due to WordPress permalink structure changes. Any SEO repercussions?
A client site had the follwing URLs for all blog posts: www.example.com/health-news/sample-post www.example.com/health-news is the top level page for the blog section. While making some theme changes during Google mobilegeddon, the permalink structure got changed to www.example.com/sample-post ("health-news" got dropped from all blog post URLs). Google has indexed the updated post structure and older URLs are getting redirected (if entered directly in the browser) to the new ones; it appears that WordPress takes care of that automatically as no 301 redirects were entered manually. It seems that there hasn't been any loss of rankings (however not 100% sure as the site ranks for well over 100 terms). Do you suggest changing the structure back to the old one? Two reasons that I see are preserving any link juice from domains linking to old URLs and ensuring no future/current loss of rankings.
Intermediate & Advanced SEO | | VishalRayMalik0 -
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 -
301 Redirected url to new subdomain, now the rank appears to be completely gone...
In an attempt to not feel bad for not blogging, I set up a new subdomain on my site to have a "coming soon" style page and "best of" section for my blog and video show properties. All the pages on the relaunch subdomain are done in Unbounce. http://relaunch.tommy.ismy.name The idea was that I would then take the pages on my regular domain, and one by one create landing pages that test out new design ideas (instead of going into full production web design) and redirect the traffic from the top ranked pages to the new, redesigned pages. At first, I set up the 301 through a plugin in wordpress and for the first week or so it was great. As far as I know, I did set my canonical tags up properly on that page too. However, just a couple days ago, I wasn't getting the same traffic, and my top ranked keyword that accounts for over half my traffic is nowhere to be found in at least the first 15 pages of search results. Which stinks, because I've maintained that rank for well over 2 years 😞 Clearly, something I did wasn't liked by Google, and I wonder, what did I do "wrong" and is there anything I could do to get that rank back?
Intermediate & Advanced SEO | | Thomas_m_walker0 -
Time for a new domain post-Penguin?
Hi there, Quick overview of a client who came to us after having the vast majority of their link value slashed by Penguin. Client only has a limited 'recovery budget' Client had been outsourcing SEO to a foreign company The website was 'keyword stuffed' when we arrived Links were of poor quality, the company clearly majoring on quantity rather than quality. Client was ranking #4 or #3 for a keyword which was bringing in sales. Post penguin, dropped to page 5 and then out of the top 100 for that keyword, losing 70% of sales. The client, under our supervision has Rewritten spammy content so they work for human beings (so it now reads well) Gone through the website and is removing old/duplicate and low-quality content De-emphasised other pages for the target keyword so that only one page majors on it. After doing the above has submitted a reconsideration request (about 2 weeks ago, so I know there's time). We are focussing on ensuring her content is written well and on building decent links to the site (i.e. to put some good-uns where the bad ones were). We're into month 2 of the 'clean-up exercise' and the site is still only ranking #90 for the keyword. Given the client's budgetary limitation, could it be more beneficial to consider a new brand identity and domain name to start afresh (without a 301 redirect) or should we just continue along the track we are doing with this client? Thanks!
Intermediate & Advanced SEO | | Nobody15609869897230 -
New URL : Which is best
Which is best: www.domainname.com/category-subcategory or www.domainname.com/subcategory-category or www.domainname.com/category/subcategory or www.domain.com/subcategory/category I am going to have 12 different subcategories under the category
Intermediate & Advanced SEO | | Boodreaux0 -
How risky is temporarily moving high value SEO pages to a brand new domain?
Hi, I won't bore you with all the details but we may have to temporarily move part of an existing domain onto a separate domain for a couple of months. The content being moved includes most of our key branded and organic SERP pages. We've owned the new domain for years but it's never been live or indexed. After a couple of months, all the content will move back to the original domain but will move to a slightly different structure and different page names. Most of the page content will remain largely the same. I"m concerned, but don't really have any experience with this kind of thing. Can anyone shed some light. Perhaps on a scale of 1 to 5 you could give me your thoughts: 1. Should be fine, as long as you set up all the redirects properly 5. Do everything in your power not to do it! Using the new domain and other factors will be problematic. Thanks for any help you may be able to provide!
Intermediate & Advanced SEO | | rfjc0 -
Domains
I am currently working on a huge website which ranks very well receiving 150,000 visitors every day. I have been offered the chance to buy some more domain names which would suit my keywords in the current site. These domains as a keyword also receive huge amounts of traffic. Would it be beneficial for me to do this....if so why? Thanks
Intermediate & Advanced SEO | | wazza19850