#1
  1. No Profile Picture
    Registered User
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Jan 2005
    Posts
    29
    Rep Power
    0

    Redirect of non www pages to www pages with 1and1


    Hi All,

    We host our site with 1and1 (using their MS Business hosting package) and by default, all pages are available at both the www and non www URL's (i.e http://www.website.com AND http://website.com).

    For SEO reasons, I'd like to 301 redirect all non www URLs to their www counterparts, but I don't see anyway of doing this with the hosting package we have.

    Has anyone here using 1and1's MS hosting found any way of doing this?

    Thanks in advance!

    Regards to all!

    Steve
  2. #2
  3. No Profile Picture
    Registered User
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Nov 2007
    Posts
    5
    Rep Power
    0

    Thumbs up htaccess redirect


    Add following line in .htaccess

    RewriteEngine On
    RewriteBase /

    RewriteCond %{HTTP_HOST} !^www\.domain\.com
    RewriteRule (.*) http : //www . domain . com/$1 [R=301,L]


    Hope this will work
  4. #3
  5. Smoke me a kipper...
    SEO Chat Hero (2000 - 2499 posts)

    Join Date
    Aug 2007
    Posts
    2,472
    Rep Power
    78
    Originally Posted by sophie
    Hope this will work
    I believe that the 1and1 MS Business package is a Microsoft server hosting option. In which case .htaccess methods won't work. You'd need the Linux / Apache server option to do this.

    @ Gelidus

    I reckon you're out of options using the MS Business package. Do you specifically need to use a Windows server? Moving to Linux would give you more flexibility (assuming that 1and1 allows you to edit .htaccess). If you're not using .asp or .net then do consider moving to a Linux server.
    ... I'll be back for breakfast
    New to SEO? SEOChat SEO FAQs
    Forum Rules and Posting Guidelines
    URL canonicalization code solutions
    Vigorously pursuing the floccinaucinihilipilification of cheap SEO tricks

Similar Threads

  1. .htaccess redirect all to new pages
    By MkUltra in forum Web Design, Coding and Programming
    Replies: 3
    Last Post: Mar 22nd, 2010, 03:34 PM
  2. How to dispose dupe phpsessid pages from index?
    By fisher in forum Google Optimization
    Replies: 3
    Last Post: Oct 11th, 2006, 11:57 AM
  3. Resource Pages Stripped off PR
    By cybrain in forum Search Engine Optimization
    Replies: 1
    Last Post: Jul 14th, 2006, 09:47 AM
  4. Doorway Pages & Cloaking 101
    By Bud Wiser in forum Google Optimization
    Replies: 5
    Last Post: Jun 2nd, 2005, 08:05 AM
  5. Here we've gone again
    By straitsex in forum Google Optimization
    Replies: 21
    Last Post: May 22nd, 2005, 05:38 PM

IMN logo majestic logo threadwatch logo seochat tools logo