Page 3 of 3 FirstFirst 123
Results 21 to 28 of 28

Thread: PageRank Differs for WWW and non-WWW URL's

  1. #21
    Stylosa's Avatar
    Stylosa is offline Net Builder
    Join Date
    Jan 2009
    Location
    UK
    Posts
    286
    Thanks
    26
    Thanked 27 Times in 16 Posts
    I'll give them a try, thanks for the help so far bogart

  2. #22
    Stylosa's Avatar
    Stylosa is offline Net Builder
    Join Date
    Jan 2009
    Location
    UK
    Posts
    286
    Thanks
    26
    Thanked 27 Times in 16 Posts
    Quote Originally Posted by bogart View Post
    One of these should work

    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^www\.domain\.co\.uk [NC]
    RewriteRule ^(.*)$ http://www.domain.com$1 [L,R=301]
    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^domain\.co\.uk [NC]
    RewriteRule ^(.*)$ http://www.domain.com$1 [L,R=301]
    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^www\.eesonline\.co\.uk [NC]
    RewriteRule ^(.*)$ http://www.eesonline.co.uk$1 [L,R=301]
    Adding the first batch of code to the htaccess file caused this problem when trying to redirect from the www version to the none www version:

    Sorry! We could not find www.eesonline.co.ukeesonline.co.uk

    Its almost like its trying to link to itself?

    Adding the second batch

    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^eesonline\.co\.uk [NC]
    RewriteRule ^(.*)$ http://www.eesonline.co.uk$1 [L,R=301]
    Results in the same error as in the first example.

    I really can't see what's going wrong here at all.

  3. #23
    Stylosa's Avatar
    Stylosa is offline Net Builder
    Join Date
    Jan 2009
    Location
    UK
    Posts
    286
    Thanks
    26
    Thanked 27 Times in 16 Posts
    aha! I've got it, there was a problem with the htaccess files, the order was all bloody screwed up, bastard things.

    Bogart thanks for the help, top man!

  4. #24
    bogart's Avatar
    bogart is offline Super Moderator
    Join Date
    May 2009
    Location
    New York
    Posts
    3,772
    Thanks
    1,886
    Thanked 776 Times in 609 Posts
    Try the generic version

    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^www\. [NC]
    RewriteRule .* http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

  5. #25
    Stylosa's Avatar
    Stylosa is offline Net Builder
    Join Date
    Jan 2009
    Location
    UK
    Posts
    286
    Thanks
    26
    Thanked 27 Times in 16 Posts
    Its working now, thanks Bogart (more than worthy of that moderator tag)

  6. #26
    xxtoni's Avatar
    xxtoni is offline xxtoni
    Join Date
    Jan 2010
    Posts
    353
    Thanks
    16
    Thanked 42 Times in 34 Posts
    Or you can use the 301 redirect in cpanel

  7. #27
    Stylosa's Avatar
    Stylosa is offline Net Builder
    Join Date
    Jan 2009
    Location
    UK
    Posts
    286
    Thanks
    26
    Thanked 27 Times in 16 Posts
    Quote Originally Posted by xxtoni View Post
    Or you can use the 301 redirect in cpanel
    Yeah if you have cpanel running

    In my case it was, but due to some problems I was having it kept resulting in redirect loops.

  8. #28
    xxtoni's Avatar
    xxtoni is offline xxtoni
    Join Date
    Jan 2010
    Posts
    353
    Thanks
    16
    Thanked 42 Times in 34 Posts
    Quote Originally Posted by Stylosa View Post
    Yeah if you have cpanel running

    In my case it was, but due to some problems I was having it kept resulting in redirect loops.
    Well its a good thing we still have good old .htaccess

Page 3 of 3 FirstFirst 123

Similar Threads

  1. [WTS] dotcom , pagerank : 1
    By bandarz in forum Domains
    Replies: 0
    Last Post: 13 May, 2011, 07:21 AM
  2. Pagerank
    By Rajbir123 in forum Stats
    Replies: 11
    Last Post: 22 June, 2010, 13:28 PM
  3. Why alexa Rating differs?
    By hendricius in forum Tech-Talk
    Replies: 7
    Last Post: 31 August, 2009, 08:36 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •