HTTPS & 301s
-
Hi
- We have like most set up a redirect from HTTP to HTTPS.
- We also changed our website and set up redirects from .ASP pages to PHP pages
- We are now seeing 2 redirects in place for the whole of the website.
http.www.domain.com > https.www.domain.com (1) >> oldwebpage.asp >> new webpage.php (2)
The question is: Is there anyway of making the redirect 1 and not 2?
thanks
Enver -
Just to make sure I understand. Can you clarify the sequence of the changes and for how long? Do you know if one set of URLs has links to it or was ever indexed.
Let me explain.
It sounds like you had a site that was using http and was an asp site. So you had URLs like
http://www.website.com/file.asp (we will call this URL type A)
You then converted to https so the URLs were like
https://www.website.com/file.asp (we will call this URL type B)
You then updated to a PHP site so now with URLs are like this
https://www.website.com/file.php (we will call this URL type C)
You can setup 301s to go from A to B and then another set to go from B to C. Your question is can you setup a 301 to go from A to C, the answer is yes. You should do this. Anytime you can reduce the number of hops the better.
What you need to think about is, well, that about the A to B and the B to C redirects? Well, I would say at a minimum, you need to eliminate the A to B 301s as you have now decided to skip the "B" and go right to C. That works. What about the B to C 301 redirect? It depends. If you had version B of the website out for a while, and it was indexed by Google and you have links that are built to B version URLs, then yes, you need to leave the B to C redirects. You don't want to lose any of that equity.
Likewise, let's say you have a version D of the site that comes out a year later. You have lots of links into the C version of the site.
https://www.website.com/file.html
You then need the A urls to 301 to the D URLs (and get rid of the A to C 301s), you need the B URL to 301 to the D URLs and so on. In other words, go through another process of cleaning up the 301s and reducing the hops.
Why do all this. Two reasons. There will still be links to the A, B, C versions of the site. Google will still find them and crawl them and you want to get credit for those links to your site. Also, Google keeps an internal log of URLs and will check them from time to time, even if no one is linking to them. You want Google to find the right URL. In either case, if Google hits a version A URL, it would then have to go to version B via a 301 and then to version C. It can do it, but it would rather have 1 hop.
Side note. Try not to use global 301s, where you just 301 a bunch of pages to the home page. That does nothing for you as far as link equity. Try and make the 301s a 1 to 1 relationship as much as possible.
Take a look at this video and this backs up what I just said. The number of hops is discussed at about 3 min in. The whole video is worth watching https://www.youtube.com/watch?v=r1lVPrYoBkA
-
I'm not sure I understand. What is wrong with the ASP -> PHP redirect?
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
-
Switched from and HTTPS to HTTP. My home page is facing a redirect issue from the http to https. Should I no index the HTTP or find the redirect and delete it? Thank you
Switched from and HTTPS to HTTP. My home page is facing a redirect issue from the http to https. Should I no index the HTTP or find the redirect and delete it? Thank you
Technical SEO | | LandmarkRecovery20170 -
Google Serps Not Showing HTTPS in Front of URL
Hi Everyone, We implemented the HTTPS change to our four websites about 6 months ago. I have found something that I feel is strange. The homepage of each website shows www.domain.com, but all the internal pages show https://www.domain.com/page. If you click through it shows it as secure, but I feel that because it is happening on all four websites, that something was done incorrectly. Here is one Google SERP: https://www.google.com/search?client=firefox-b-1&biw=1920&bih=947&ei=gq9GWpizBuuF_Qa_p5e4Bw&q=tanzanite+jewelry+designs&oq=tanzanite+jewelry+designs&gs_l=psy-ab.3..0l2.130446.136028.0.136152.29.17.4.7.9.0.207.2214.7j9j1.17.0....0...1c.1.64.psy-ab..1.28.2350...0i131k1j0i22i30k1.0.BA5-meGmuA0 As you can see, our site displays with no https, but all the internal pages do. It just worries me as I have seen our internal pages increasing in positioning, but not our homepage. Any ideas?
Technical SEO | | vetofunk0 -
Removing a lot of content & changing url structure.
I recently moved an existing ecommerce site, which I recently purchased, from Volusion to Shopify. The new site has a completely different link structure. The old site also had about 120 products which are not even close to being up to par with the products I now have on the site. So I had to remove all of those pages too. I was just wondering which measures I need to take to deal with this? I created a really nice 404 page. I also 301 redirected the pages which still exist. But I was wondering if there is anything else I should do? Should I request a removal of all the old pages, which no longer exist? Should I do something else I'm not thinking about? Any help would be greatly appreciated. Thanks. jim
Technical SEO | | PedroAndJobu0 -
Buying multiple domains: misspells & .net, org, etc. & 301's
Hi, an SEO guy told me to buy up domains like ours X.org, net, biz, etc. & mispellings. this could cost over $100/year. Is is worth it for SEO or is it just covering our @ss if competitors want to get stupid and buy those? I don't forsee competitors doing that. What do you suggest? Does Google actually give us points for those AND if we bought them are we supposed to redirect all of them to our site? Should I be doing this for our SEO clients? Thanks.
Technical SEO | | JCunningham0 -
Photography Sites with Same Developer - Why Is One Ranking & Other Not?
I'm currently confused about the difference in ranking between two competing sites, created by the same agency. http://jmayphoto.com/index2.php#!/home (302 redirected from http://jmayphoto.com...yeah) is not ranking well, and I'm not surprised. However, competitor http://www.shanrenee.com/ is ranking within the top 5 spots for a primary target keyword (dallas wedding photographer) and I don't understand how it's doing so well. I definitely see differences, but not enough to explain how Shan Renee is one page. What am I missing?
Technical SEO | | BrittanyHighland0 -
DoubleClick Floodlight tags & SEOMoz Chrome App
Hi guys Newbie here looking for some advice from you SEO gurus. I've installed SEOMoz's chrome app and, visiting my site's homepage, when I open click the SEOMoz icon and it opens the dialogue window, i get analytics for a doubleclick url. Now, my homepage does have a doubleclick tag on it, but it's waay down in the page source. Is there something I should be doing here to stop this happening? Surely the app should find my site's URL over the DoubleClick tag? Looking at the guidelines for DoubleClick, it says that the Floodlight tags need to be placed between the tags. They're sitting outside these tags on my homepage. Do you think this might be causing the issue? I'm sure this is going to be an embarrassing lesson in SEO 101, but I'm keen to learn and to fix this if possible. Thanks!
Technical SEO | | zeegirl0 -
New Domain Page 7 Google but Page 1 Bing & Yahoo
Hi just wondered what other people's experience is with a new domain. Basically have a client with a domain registered end of May this year, so less than 3 months old! The site ranks for his keyword choice (not very competitive), which is in the domain name. For me I'm not at all surprised with Google's low ranking after such a short period but quite surprsied to see it ranking page 1 on Bing and Yahoo. No seo work has been done yet and there are no inbound links. Anyone else have experience of this? Should I be surprised or is that normal in the other two search engines? Thanks in advance Trevor
Technical SEO | | TrevorJones0 -
De-indexing thin content & Panda--any advantage to immediate de-indexing?
We added the nonidex, follow tag to our site about a week ago on several hundred URLs, and they are still in Google's index. I know de-indexing takes time, but I am wondering if having those URLs in the index will continue to "pandalize" the site. Would it be better to use the URL removal request? Or, should we just wait for the noindex tags to remove the URLs from the index?
Technical SEO | | nicole.healthline0