We are redirecting http and non www versions of our website. Should all versions http (non www version and www version) and https (non www version) should just have 1 redirect to the https www version?
-
We are redirecting http and non www versions of our website. Should all versions http (non www version and www version) and https (non www version) should just have 1 redirect to the https www version?
Thant way all forms of the website are pointing to one version?
-
I am happy I could be of help please let me know if there's anything else I can be of assistance with?
-
PS I will run a crawl to check
-
It is fine to 301 redirect to** "/"** you need to pick forward slash "/" or no forward slash.
- SEE:
- https://webmasters.googleblog.com/2010/04/to-slash-or-not-to-slash.html
- https://www.seroundtable.com/google-trailing-slashes-url-24943.html
You should force HTTPS
- http://cardiff.co.uk 301's to http://www.cardiff.co.uk/
- See: https://i.imgur.com/fg34sXR.png
- You should add https
- https://dash.cloudflare.com/sign-up
- or
- https://www.rapidtables.com/web/tools/redirect-generator.html
Add a SSL cert I would just add cloudflare.com (if you want fast & easy also Free)
- https://support.cloudflare.com/hc/en-us/articles/204144518
- https://support.cloudflare.com/hc/en-us/articles/200172286-Configuring-URL-forwarding-or-redirects-with-Cloudflare-Page-Rules
When configuring Page Rules, the Always use HTTPS action is the simplest method to redirect HTTP requests to HTTPS. You can also use the Forwarding URL action with a 301 redirect if you need to redirect to another subdomain in addition to forcing HTTPS. For example, a Page Rule match for
**_http://_cardiff.co.uk_/*_**
with a _Forwarding URL _of
**_https://www.cardiff.co.uk/$1_**
or ASP.NET
<%@ Language="VBScript" %>
<%
' ASP permanent URL redirect - generated by www.rapidtables.com
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", "https://www.cardiff.co.uk/"
Response.End
%>Redirect entire domain from HTTP to HTTPS
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Redirect entire domain from non-www to www and HTTP to HTTPS
RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteCond %{HTTPS} off RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Hope this helps,
Tom
-
Thank you for the advice it is very useful.
In GWT we are also showing redirects on all pages from the non / page to the / page
ie cardiff.co.uk redirects to cardiff.co.uk/
is this OK?
-
if you talking about the domain
you should 301 redirect each of the 3 of 4 different URLs to the one you want to be the primary domain that is using https
This is a great guide
https://ahrefs.com/blog/301-redirects/
You can always use CloudFlare as free & easy fix.
If you want to use HSTS preload or just HSTS
Test your 301 setup using
https://hstspreload.org/?domain=example.com
If you are using https://www. as the primary
See you must force http to https and the HTTP://www
Must redirect to the https:// bare domain so that means two redirects.
Error: No redirect from HTTP
http://example.com
does not redirect tohttps://example.com
.Hope this helps,
Tom
-
Ideally, yes.
However, it's not likely to have a massive impact if you do have a redirect chain first to www and then to https.
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
-
Http to https what should one look out for
Hi, we are moving our site from http to https and would like to know what should one look out for. What are the things that can go wrong, and what is the best way to go about it. Regards Tai
Intermediate & Advanced SEO | | Taiger0 -
Website Indexing Issues - Search Bots will only crawl Homepage of Website, Help!
Hello Moz World, I am stuck on a problem, and wanted to get some insight. When I attempt to use Screaming Spider or SEO Powersuite, the software is only crawling the homepage of my website. I have 17 pages associated with the main domain i.e. example.com/home, example.com/sevices, etc. I've done a bit of investigating, and I have found that my client's website does not have Robot.txt file or a site map. However, under Google Search Console, all of my client's website pages have been indexed. My questions, Why is my software not crawling all of the pages associated with the website? If I integrate a Robot.txt file & sitemap will that resolve the issue? Thanks ahead of time for all of the great responses. B/R Will H.
Intermediate & Advanced SEO | | MarketingChimp100 -
How many redirects are too many?
Hello Everyone, I currently have a dynamic site and it is my understanding that switching to a static site would be beneficial. I already have some 301's in place from when my site had a .php extension to the new extension now with ./?... etc. Is it okay to re redirect them? How many redirects are too many? Thank you in advance for suggestions. Have a Fabulous Friday! Sandra
Intermediate & Advanced SEO | | rankmenow0 -
HTTPS in Rel Canonical
Hi, Should I, or do I need to, use HTTPS (note the "S") in my canonical tags? Thanks Andrew
Intermediate & Advanced SEO | | Studio330 -
Non-www URL showing in Blog
Thanks to Sanket Patel in an earlier query I've now got non-www pages showing as www. pages on my www.nile-cruises-4u.co.uk website. But the Blog which is part of the site posts and pages still show as non-www pages. For example: http://nile-cruises-4u.co.uk/blog/makadi-palace-hotel-makadi-bay/ I wonder if anyone has come upon the same problem and what the solution might be? Thanks, Colin
Intermediate & Advanced SEO | | NileCruises1 -
Redirecting, then redirecting back
Hey, mozzers! My first question ever... I have a client who has (fictitionally) WickerPatioHomeStore.com, which features wicker home decor. Not too long ago, they wanted a shorter, easier URL, so they redirected to another domain they own, WickerPatio.com (again, fictional). They saw somewhat of a drop in traffic, and wonder if there's a correlation with the words "home store" not being in their domain any more. When considering the two, I figure that relevant factors would be age of domains, history of content of the domains, and inbound links to each domain. Any thoughts on other things to consider? Thanks very much!! ~ Scott
Intermediate & Advanced SEO | | GRIP-SEO0 -
Duplicate titles but redirecting anyway (without redirects set up!!!)
Google has done a crawl of my site and is flagging up duplicate titles on my wordpress site. This appears to be due to the face that some posts are tagged in more than one category. I have just gone to make sure that each post just has one category and add redirects and I've noticed that all the duplicate title issues google has notified me about appear to redirect anyway. For example: http://www.musicliveuk.com/latest-news/live-music-boosts-australian-economy and http://www.musicliveuk.com/live-music/live-music-boosts-australian-economy have duplicate titles apparantly but the 1st url redirects to the 2nd one. I use the redirection plug in but have no redirection set up for that url so I'm a bit confused. And if they're redirecting anyway then why is google flagging up duplicate titles? Any help would be much appreciated.
Intermediate & Advanced SEO | | SamCUK1 -
Have I missed anthing On this website?
Hello SEO MOzzers, I am today wanting your feedback on a site that I recently went live with. My Google rankings for the main keywords are doing very well considering the site has been live for 3 weeks now. I of course have a list of items that i'm still working on, completing meta description tags, title tags, adding copy content to category pages, updating h1 tags, working on our backlinking campaign, etc. Is there anthing any of you SEO Mozzers can see that I may have missed? the web domain is www.carbodypanels4u.co.uk Keywords "body Panels"
Intermediate & Advanced SEO | | seohive-222720
"car body panels"
"Car Make body panels"
"Car make Model body panel" Im sure you get the gist of the keyword structure. Your feedback is much appreciated as always. shiv0