Htaccess Question - Is this the way to go to consolidate?
-
Hi all,
My site seems to have www.xyz.com, http://www.xyz.com, http://xyz.com and other variations! From an old agency doing this. All showing differing backlinks etc. SO I want to merge them so I can just look at one analytics account - with everything combined.
I want it just to consolidate all to https:///www.xym.com as the client wants - how do I do this? Does it take long to take effect??
Also I presume in webmaster I'll have to set up the preferred extension?
Thanks very much for any advice
-
We can help you get all those urls to point to the https on the server. But what reports are you referring to?
-
It's actually just by looking at link reports to the variations that I can see they fluctuate with differing versions. So I'm looking for a simple way to make sure all the prefixes redirect to https://. Thanks for the comments so far.
-
Excellent addition. Probably a combination of both since he states that the client wants to migrate to HTTPS. We'll have to get clarification from Giles.
-
Ryan,
I was going to mention this but after I re-read it. It seems he is dealing with an issue inside Google Webmaster Central that shows reports for more then one domain. I have seen this before where they list domains likehttp://www.site.com
http://www.site.com/shop
http://www.site.com/Each showing different metrics.
Please correct me if I'm wrong.
-
Hi Giles. You'll end up with something similar to this:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [R,L]RewriteRule ^page1(.*) https://%{SERVER_NAME}/page1$1 [R,L]
The first being an example of redirecting an entire domain to HTTPS and the second, a specific page.
The effects of the redirection are immediate in the sense that once the .htaccess file is changed the redirection will be in place. What takes a longer amount of time is for the change to carry over in Google's ranking and throughout the web. Using the tools in GWT and Bing can help.
Here are a couple of guides that you might find useful: http://moz.com/blog/web-site-migration-guide-tips-for-seos and http://moz.com/learn/seo/redirection.
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
-
Google Rank 0 - Best way?
We are trying to create tables or bullet points on each of our pages summarising the content of the page and get it to rank on position 0 on Google. This technique worked for some searches but not all so we were wondering: Is it beneficial to add links or not ? Is there a keyword limit? We are on Magento 2 if that helps. Thanks James
Intermediate & Advanced SEO | | JamesDavison0 -
What is the best way to add semantic linked data to WordPress?
As a recent Moz subscriber, I'm trying to up my game in terms of inbound marketing. One of the most pressing tasks is to add json-ld across all of my WordPress sites. What is the best way to do this? Should I use the technique set out here: https://mza.seotoolninja.com/blog/using-google-tag-manager-to-dynamically-generate-schema-org-json-ld-tags Or should I use one of these plugins? https://en-gb.wordpress.org/plugins/schema/ https://en-gb.wordpress.org/plugins/wp-structuring-markup/ I want to get this right so any guidance would be gratefully received.
Intermediate & Advanced SEO | | treb0r0 -
Does Google penalise in the way described in this article?
In an interesting article from January on content cannibalisation: https://ninjaoutreach.com/content-cannibalization-avoid/ there is the following paragraph: "When the same keyword is used across a number of pages of a single website, Google’s spiders automatically get directed to a page with low-grade quality which in turn results in the low ranking of all the pages on the website." Is this true? The suggestion here is that they automatically get directed there as a form of penalty. This seems like quite an extraordinary claim! Can anyone verify?
Intermediate & Advanced SEO | | Ad-Rank0 -
Href lang and multilingual question
Greetings Moz-Hive mind! I'm hoping you can help me on the internationalisation conundrum below; We currently have a website with three distinct 'locales' US, SEA and UK we automatically redirect customers using IP recognition to a locale which matches, we also determine their currency based on IP. The issue we currently have is a lot of duplicate content and no use of href lang or rel=canonical tags etc... My proposed structure would be to create a locale based directory for the three locales we offer. / - being US and most other Worldwide /uk - being UK /as - being Hong Kong and other Asian territories. How would you suggest we set up the href lang tags for these? Because technically there are going to be multiple language possibilities within. Our main customers are English only if this helps. Also as a secondary question, how should I set up the Google Search Console settings for each of these directories? Many thanks in advance.
Intermediate & Advanced SEO | | Ashley-Jacada0 -
How much change should you make to your site in one go?
Hey everyone, So we are currently working on a new website and are in the final stages right now. We have some plans for a brand name change too and there is some debate internally whether we should: a) roll out the new site now and hold off on the rebrand - let the redirects kick in and the site bed in so to speak. Then when the dust settles look at a domain name change b) Roll out the new site with the domain name change too - an all in change A bit of background on the changes being made: The new website will have some structural changes but the main blog content will remain the same - this is where we get the majority of our traffic. The blog will have a slight page layout change but the core content, structure, urls, etc. will be exactly the same. The core website surrounding the blog will change with 301 redirects from old out of date content pages consolidated to fewer, more relevant pages. I hope I've explained enough here, if not please let me know and I'll add more detail
Intermediate & Advanced SEO | | hotchilidamo0 -
Duplicate Content Question
Hey Everyone, I have a question regarding duplicate content. If your site is penalized for duplicate content, is it just the pages with the content on it that are affected or is the whole site affected? Thanks 🙂
Intermediate & Advanced SEO | | jhinchcliffe0 -
SEOMOZ Diagram question
Hi, On this SEOMOZ help page (http://www.seomoz.org/learn-seo/internal-link) the diagram explaining the optimal link structure (image also attached) has me a little confused. From the homepage, if the bot crawls down the right-hand link first, will it not just hit a dead end where it cant crawl any further and disappear? OR... will it hit the end of the structure and then crawl backwards to the homepage again and follow down another link and then just repeat the process until all pages are indexed? Cheers pyramid.jpg
Intermediate & Advanced SEO | | activitysuper0 -
Canonical URL Question
Hi Everyone I like to run this question by the community and get a second opinion on best practices for an issue that I ran into. I got two pages, Page A is the original page and Page B is the page with duplicate content. We already added** ="Page A**" />** to the duplicate content (Page B).** **Here is my question, since Page B is duplicate content and there is a link rel="canonical" added to it, would you put in the time to add meta tags and optimize the title of the page? Thanks in advance for all your help.**
Intermediate & Advanced SEO | | DRTBA0