Forum Moderators: open

Message Too Old, No Replies

Why Google indexing example.com but not www.example.com?

Indexing-problem with Google!

         

it2ceda

8:50 am on Jan 16, 2004 (gmt 0)

10+ Year Member



hi!
I just wonder why google just indexing my startpage "example.com" but not "www.example.com" every day. Can I do something about it or is that the way google works?

I tried to use a redirect so example.com goes to www.example.com like this:
RewriteEngine On
RewriteCond %{HTTP_HOST}!^www.example.com$ [NC]
RewriteRule ^(.*)$ [example.com...] [R,L]

but that doesn't help at all.

[edited by: ciml at 11:58 am (utc) on Jan. 17, 2004]
[edit reason] Domains examplified. [/edit]

g1smd

10:37 pm on Jan 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



There are three other threads in this forum, in the last few days already discussing this problem.

it2ceda

11:17 pm on Jan 16, 2004 (gmt 0)

10+ Year Member



Yeah I saw that :)
Anyway, maybe someone can tell me how to manage my subdomain not changing from this:
"www.subdomain.example.com"
to:
"www.example.com/subdomain"
when doing the redirect thing.
Shall I have a .htaccess file into my subdomain who will manage that maybe?

[edited by: ciml at 12:00 pm (utc) on Jan. 17, 2004]
[edit reason] Domains examplified. [/edit]