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.
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
-
Should we go after this main keyword?
Hello, We run an online store. The main content keyword for our niche is very competitive, but if I was going to go look up information and I was one of our customers, that is exactly what I would type in - this main general keyword. We have an expert in the field to write it and plenty of time. Although the main keyword is competitive, there are many many subkeywords that are a lot less competitive that would be answered in the article. It's tough to find good topics in this niche. We're thinking about doing a "Complete Guide to X". We would have far less backlinks and authority for about half of the 30 keywords it will cover than our main competitors. Should we do this and spend the next couple of years working on it, or should we perhaps target a smaller topic? Any advice is appreciated.
Intermediate & Advanced SEO | | BobGW0 -
Sites in multiple countries using same content question
Hey Moz, I am looking to target international audiences. But I may have duplicate content. For example, I have article 123 on each domain listed below. Will each content rank separately (in US and UK and Canada) because of the domain? The idea is to rank well in several different countries. But should I never have an article duplicated? Should we start from ground up creating articles per country? Some articles may apply to both! I guess this whole duplicate content thing is quite confusing to me. I understand that I can submit to GWT and do geographic location and add rel=alternate tag but will that allow all of them to rank separately? www.example.com www.example.co.uk www.example.ca Please help and thanks so much! Cole
Intermediate & Advanced SEO | | ColeLusby0 -
Panda Recovery Question
Dear Friends, One of my customers was hit by the Panda, we were working on improve the tiny content on several pages and the remaining pages were: 1 NOINDEX/FOLLOW 2. Removed from sitemap.xml 3. Un-linked from the site (no one page on the site link to the pour content) As conclusion we can't see any improvement, my question is should I remove the pour content pages (404)? What is your recommendation? Thank you for your time Claudio
Intermediate & Advanced SEO | | SharewarePros0 -
Blog comments - backlinks - question
Hi, I see that many good websites have backlinks from very good blogs/sites which are relative. What I noticed that everyone use their real name or generic name in comments. They do not use the keyword for the name. So later they get backlinks with anchor text of their names... So, my question is this good technique ? Do I have any benefits from these backlinks for my website ? With such a technique, whether it is enough just to leave your real name or may I periodically put the keyword for the name ? Thank you
Intermediate & Advanced SEO | | Ivek990 -
I have a question regarding parking good value domain.
I have a question regarding parking good value domain. A client has a great website 'A' with page rank of 5 and a lot of traffic. They want to change the URL and redesign the site. So they have parked the domain 'A' and will later redirect it to the new domain, this will be in a month time. My questions is, by parking the old domain 'A' would they have lost its SEO value or will it be given to the new URL once they place a 301 redirect on it. Also, would it not have been better not to park domain 'A', keep it live and just redirect it once new domain goes live, notifying Google in Webmaster tools?
Intermediate & Advanced SEO | | OrangeGuys0 -
Link Building Question
Hi, I have a 2 month old blog with me, i have submitted a few press releases for the start, later in these 2 months, i got about 40 guest posts, which i've written and submitted at myblogguest site. My niche is in health. Currently my serps are at 16th page which is not a good position. I want to do more link building, but at myblogguest, no one are interested in my niche and don't want to publish content related to my niche, so it becoming hard for me to find guest blogs related to my niche. But i want to get more links in order for my blog to rank well. Is it ok if i write guest posts in other niches as well like technology and put a link in author's resource box? Does it become useful? please help as i find no other sources for my link building task, i tried researching for guest blogs in google also, but i don't find any related to my niche. Seems like, i cannot go further with my link building. Please help me. Thanks
Intermediate & Advanced SEO | | Vegitt
Dheer0 -
Best way to migrate to a new URL structure
Hello everyone, We’re changing our URL structure from something like this: example.com/index.php?language=English To something like this: example.com**/english/**index.php The change is implemented with mod_rewrite so all the old URLs can still work We have hundreds of thousands of pages that are currently indexed with the old URL structure What’s the best way to get Google to rapidly update its index and to maintain as much ranking as possible? 301 redirect all the old URLs to the new equivalent format? If we detect that the URL is in an old format, render the page with a canonical tag pointing to the new equivalent format as well as adding a noindex, nofollow tag? Something else? Thanks for your input!
Intermediate & Advanced SEO | | anthematic0 -
Has anyone found a way to get site links in the SERPs?
I am wanting to get some site links in the serps to increase the size of my "space", has anyone found a way of getting them? I know google says that its automatic and only generated if they feel it would benifit browsers but there must be a rule of thumb to follow. I was thinking down the line of a tight catagorical system that is implimented throughout the site that is clearly related to the content (how it should be I guess)... Any comments, suggestions welcome
Intermediate & Advanced SEO | | CraigAddyman0