Forum Moderators: open

Message Too Old, No Replies

How Do I Get Rid of http://example.com

www.example.com also is indexed.

         

sahuman

3:52 pm on Dec 16, 2004 (gmt 0)

10+ Year Member



On doing a site:widgets.com search on google, I see both results - with the www and one without it.

One, if I am concentrating on building inward links to [example.com,...] is the [example.com...] listing a cause for concern?

Two, how do I get the [example.com...] (This link leads to nowhere) out of Google's index?

Thank you!

[edited by: ciml at 4:33 pm (utc) on Dec. 17, 2004]
[edit reason] Examplified [/edit]

rfgdxm1

4:34 am on Dec 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Redirect all calls to root to the www subdomain via a .htaccess redirect. Try using the site search here, as this has been posted about before.

Stefan

4:39 am on Dec 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Change the "yourdomain" to your actual domain in the following and put it in your .htaccess

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST}!^www\.yourdomain\.com
RewriteRule (.*) [yourdomain.com...] [R=301,L]

<edit>The copy and paste removed a couple of spaces...stuck them back in. Check the Apache forum anyway, man. That's the place to ask about this stuff.</edit>
<edit>Sheesh... there they go again. Visit the Apache forum.</edit>