Www. & Non-www versions problem
-
I currently have both WWW and non-WWW versions of my site live on the web, and I want to be able to have all non-WWW to point to WWW.http://nile-cruises-4u.co.ukhttp://www.nile-cruises-4u.co.uk
I want just the WWW version of the site live.I'm wondering the best way to resolve this?Is it normally dealt with in the .htaccess file and I think, looks like this but I'm not sure:<code>RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ [http://www.](http://www.)%{HTTP_HOST}/$1 [R=301,L]</code>
-
Hi Colin,
Login to wordpress admin panel then go to setting -> General and in that change put
WordPress Address (URL) = http://www.nile-cruises-4u.co.uk/ and
Site Address (URL) = http://www.nile-cruises-4u.co.uk/
Hope this helps you...
-
Thanks to Sanket I've successfully managed to have the site show only www. and not the non-www. versions.
However I have a blog on the site and that still shows the non-www. version, 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
-
Thank you very much Sanket.
That's so kind of you.
Colin
-
Hi Nile,I have made code for you... please this code in .httaccess fileRewriteEngine onRewriteRule ^([A-Za-z0-9-]+)/?$ index.cfm?id=$1 [L]Rewritecond %{http_host} ^nile-cruises-4u.co.uk/$ [nc]rewriterule ^(.*)$ http://www.nile-cruises-4u.co.uk/$1 [r=301,nc] RewriteRule ^index.cfm http://www.nile-cruises-4u.co.uk/ [L,R=301]
Hope this help you out.....
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
-
Is AMP works on blogs only?
I have installed AMP Plugin in my WordPress website but when I check pages with /amp/ it shows 404 error. But for blog pages, for the example www.website.com/blog/post/amp/ it shows amp version of the particular page. Also, nothing is showing in search console Accelerate Moile pages.
Intermediate & Advanced SEO | | SEO-Stephanie0 -
Index Problem
Hi guys I have a critical problem with google crawler. Its my website : https://1stquest.com I can't create sitemap with online site map creator tools such as XML-simemap.org Fetch as google tools usually mark as partial MOZ crawler test found both HTTP and HTTPS version on site! and google cant index several pages on site. Is problem regards to "unsafe URL"? or something else?
Intermediate & Advanced SEO | | Okesta0 -
Multilingual Version of a Website
Hi All, We created 'EN' and 'FR' version of a website and translated all labels and message from English to France with the help of Google Translator. Lets take an example: English version URL - https://www.sitegeek.com/softlayer France version URL - https://fr.sitegeek.com/softlayer France version also contain same reviews available on English version page. So the reviews content or language is same on both pages. To eliminate the duplicate content issue we put following meta tags on both 'EN" and 'FR' version pages : So My question is that (1.) Is this the correct implementation of Multilingual Version of a Website? (2.) Is Added meta tags work for both Google and Bing Search engine? (as Bing not indexing all pages) (3.) We are translated labels and messages from Google Translator. Is this the issue pages not being Indexed in Bing? (4.) Finally, What would the correct SEO approch if we translate our site in other languages? Rajiv
Intermediate & Advanced SEO | | gamesecure0 -
International SEO, Ecommerce & Rich Snippets
I have an Australian Ecommerce site. I also sell to NZ and USA . As part of the user experience it will detect where you are and change the currency accordingly. so when google crawls - the currency will always be USD I guess ( because it is a US IP address ). My question - how can I embed ecommerce microdata that will show the correct currency / price to the correct country in SERPS ?
Intermediate & Advanced SEO | | s_EOgi_Bear0 -
Affiliate & canonicals
Hi, any help with this one would be great.... www.example.com sells widgets online. They are also promoted on a 3rd party website www.partner.com. Currently www.partner.com links to a page on www.example.com that is completely branded with the 'partners' design, style and unique copy (you would think you were still on 'partner' website). I saw this interesting article from 2011: http://www.seomoz.org/blog/getting-seo-value-from-your-affiliate-links (in particular idea 1) Do you think adding a rel=canonical on www.example.com's partner page is still safe? All the best & thank you, Richard
Intermediate & Advanced SEO | | Richard5550 -
How do I reduce internal links & cannibalisation from primiary navigation?
SEOmoz tools is reporting each page on our site containing in excess of 200 internal links mostly from our primary navigation menu which it says is too many. This also causes cannibalization on the word towels which i would like to avoid if possible. Is there a way to reduce the number of internal links whilst maintaining a good structure to allow link juice to filter through the site and also reduce cannibalization?
Intermediate & Advanced SEO | | Towelsrus0 -
Duplicity Problems - What to do with similar products in e-commerce?
Hello, I have an eCommerce website with hundreds of similar products. On some occasions, besides for their measurements they are completely identical. The titles are kept different by using the stock reference and the meta descriptions also use their measurements. However, I'm gettingDuplicate Page Content errors by the MOZ crawler. This is more than understandable since the products are very similar -
Intermediate & Advanced SEO | | BeytzNet
WHAT SHOULD I DO??? I noticed a similar situation in BlueNile (the diamond ecommerce site) - They have numerous almost identical pages, see example: http://www.bluenile.com/round-diamond-1-carat-or-less-ideal-cut-g-color-vs1-clarity_LD02424873 http://www.bluenile.com/round-diamond-1-carat-or-less-ideal-cut-g-color-vs1-clarity_LD02430168 For some reason, they did on each page a canonical to it's self... I wanted to add... It is impossible to add different descriptive texts due to the amount of products and to the rapidness they are sold (each product is unique - similar to the diamonds in the BlueNile example).0 -
3 Sites Covering Similar Topics & Panda
My question will take a bit of explaining, so here goes: I have 3 blogs on the same server: 1. personal finance blog; 2. credit card blog; 3. prepaid credit card blog. The personal finance blog is my flagship site started in 2007, which feeds my family and pays the mortgage. By contrast, the other two sites (started in 2008 and 2010) I would gladly kill if the result would help my personal finance blog. In the fall of 2010 (before Panda) the prepaid card blog was penalized by Google. This has been confirmed by Google in response to a reconsideration request. Of course, they don't say why. I've tried a number of things and resubmitted the site, but with no luck. Both the personal finance blog and credit card blog were hit by Panda 2 (April 11, 2011) and have not recovered. While the personal finance site covers many topics (e.g., investing, credit, debt, money management), its income comes largely from credit cards. We review individual credit cards and have pages that list cards by category (e.g., balance transfer, cash back, travel). The credit card blog does the same thing, but of course covers credit cards in more depth. There is a similar overlap between the prepaid card blog on the one hand, and the credit card blog and personal finance blog on the other. However, all content is unique. I do not currently link between the sites, although until a few months ago I had blogroll links between the sites and a few (less than 10) content links. If you've made it this far (and I hope you have), here are my questions: 1. Could the existence of the credit card and prepaid credit card sites be hurting my personal finance blog's rankings in Google, whether via Panda or otherwise? 2. If there is a reasonable chance that the answer to question 1 is yes, what would you suggest I do? Of course, I could just take down the sites, but I wonder if there are other options. One thought I had was to deindex the two card sites (I assume I can do this by disallowing googlebot via robots.txt) and give it time. Would Google treat this as if the sites did not exist? Both sites get a fair amount of traffic from bing and yahoo, so this option appeals to me. Of course, for all I know the existence of the two card sites are hurting my personal finance blog's rankings in bing and yahoo, too. I thought about selling the sites, but if they are hurting my personal finance site, I grow concerned about how google distinguishes between a site being sold and a webmaster just trying to make the sites look like they are owned by different people. In this regard, I've never tried to hide the common ownership of the sites and have no intention of doing that now. If I kill the sites, should I redirect them to my personal finance site? For the penalized prepaid card site, this seems both risky and unhelpful. But perhaps redirecting the credit card site is an option. Given that the personal finance site is my livelihood, I greatly appreciate your thoughts on my dilemma.
Intermediate & Advanced SEO | | Bergerlaw0