Moz Q&A is closed.
After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.
Can access my site using www
-
Hello, when I try to access my website using www i would like it to redirect to non www but instead it shows a sal error message.
-
Yes, you can access your website using the prefix "www". The "www" is simply a subdomain that is conventionally used to identify web servers. It is not required by any technical standard, but it is a widely recognized convention.
In short, you can access your website with or without the "www" prefix. It is simply a matter of personal preference.
Here are the tutorials I have followed to set redirects with or without www.
Via cPanel: https://www.milesweb.co.uk/hosting-faqs/redirect-www-non-www-urls-htaccess-cpanel/
Via DirectAdmin: https://www.milesweb.co.uk/hosting-faqs/redirect-www-non-www-urls-htaccess-directadmin/
-
This is common and can sometimes be easy to fix. Sometimes as simple as the setting of some HTTP rewrite rules in the .htaccess file. You will need to secure your domain for the wildcard domain including www when issuing an SSL certificate.
If you are using WordPress there are add-ons such as Really Simple SSL to help you with this.
Example of Rewrite
RewriteEngine On # This will enable the Rewrite capabilities RewriteCond %{HTTPS} !=on # This checks to make sure the connection is not already HTTPS RewriteCond %{HTTP_HOST} ^yourdomain.com [NC] # Replace domain with your domain. RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301] # Replace domain with your domain.
This .htaccess rule will redirect all visitors from the non-www to the www version of your website.
[https://www.hostinger.co.uk/tutorials/cpanel/how-to-redirect-non-www-urls-to-www](link url)
This is the most common way however if you use CPanel it might be slightly different you might need to set up a redirect.
If you use Cloudflare you can just use some page rules and use a forwarding URL with 301 permanently redirected to the non-www of the domain.
Since we can use both www and non-www make sure your DNS records are updated for both.
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
-
Moving site from www to non www and also hosting to vps what will be the effect?
Hi SEO gurus,
Intermediate & Advanced SEO | | SeoBlogs61
I am trying to move my site from shared hosting to VPS hosting and also moving from www to non www version.
What is the best possible way to avoid any issue and without losing the backlinks.
Is it good or bad to do? URL: https://buylikesservices.com/0 -
What is the best tag to use for your Logo ?
Hi, I'm wondering what is the best tag to use on your logo. We're currently using h1 and i want to scrap that ASAP.
On-Page Optimization | | Alex.harvey.Cortex0 -
Using Schema markup for Feefo reviews
I am a little confused about whether or not it is ok to use Schema markup with reviews collected through Feefo. We use Feefo to collect reviews from our customers and these get displayed on our website. We get service ratings as well as product ratings through Feefo. My question is: Is it ok to use Schema markup for these? I would have thought they would fall under 3rd party reviews, but this article from the Feefo website seems to suggest that it would be ok to use markup in the way they recommend. Can anyone confirm how Google handles review markup like this? Thanks in advance!
On-Page Optimization | | ViviCa10 -
Include Site Name in Page Titles or not
i would like to ask if it is a good practice or not to Include Site Name in Page Titles. My page is not selling products it is about plagiarism checker tool. i will give one example in one page we are writing about the plagiarism types so the page title is plagiarism types and then is the site name. what is the better practice? Keep it or not? thanks in advance
On-Page Optimization | | anavasis3 -
Linking to External Site In Nav Bar
Hi, we are a celebrity site but also own a separate sports site with its own URL. We have a link to that site in our Nav bar. Are we being penalized by having that link? thanks
On-Page Optimization | | Uinterview0 -
Difference in using dividers in TITLE TAG
Hi everyone, i know that dividers in title or even title tag doesnt have much of an impact on better rankings. I had great rankings for many keywords, not using dividers or using only one divider. However for better reading comprehension and usability, and also aesthetics i started to use the pipe as my main divider and other secondary dividers. I saw many pages drop in rankings vs other less competent and with less content pages. My format was as follows: Product Brand | Product description - Additional info or local info ie. Fiber Glass MBI | Insulation Batts for Home and Commercial use - Acoustic and Thermal Insulation I changed the format for a handful of pages, and saw immediate results on rankings and traffic on those pages. Product Brand with Product Description - Additional Info ie. Fiber Glass MBI Insulation Batts for Commercial use - Acoustic and Thermal Insulation. Does it sound like something i should implement page wide. I personally like the aesthetics of the pipe as it gives a cleaner look, but the better rankings on the changed pages with using only one divider makes me think. Does it sound familiar, or its just a coincidence, Regards,
On-Page Optimization | | JesusD0 -
Website accessible on http and https. Is it bad?
We noticed that our website is accessible on: http://www.example.com and https://www.example.com Both the versions have page rank of 4. Though on https version we have added canonical tag indicating http:// version as preferred. Is this fine or we need to use 301 redirect and let the site be accessible only on http:// version??
On-Page Optimization | | CyrilWilson1 -
Sister Sites or Joint Family?
A large News Media Group has a Tv Channel, print newspaper, radio channel (for music primarly) and an online website that includes the newspaper content and other original content in different media. My question is, is it better to have independant websites for these different mediums or have all the content on one big website. Currently the newspaper and blog are online as one whereas the radio channel has its own website and the television has its own. So should we maintain sister sites and cross link to each other or have one big happy family under one house? Best, Rishad.
On-Page Optimization | | RishadShaikh590