Forum Moderators: phranque

Message Too Old, No Replies

Temporary URL now used by google in index

301 redirect on temp domain

         

whatnotbot

7:50 pm on Jan 19, 2005 (gmt 0)

10+ Year Member



I've just moved to a new host, and for a short time, my movable blog config was set to the temporary URL my host gave me so I could see the site - actually I accessed it by IP, but the MT blog used the temporary URL.

www.weirdcrappyservername.com/~username/blog/

Trouble is when you search for my site now you get the temp url over the real url.
www.mydomain.com/blog

The real URL is there when I search for the title, but using my keyword google gives the temp site prefernce, also the temp site has a much more recent cached file. I know a 301 redirect would work, but the .htaccess for the temp site and the main site are one and the same so how do I do this. also the main site is ok, its just the subdirectory /blog. I've tried a mod rewrite

RewriteEngine on
RewriteCond %{HTTP_HOST}!^www.\mydomain\.com
RewriteRule ^.*$ [mydomain.com%{REQUEST_URI}...] [R=301,L]

but his doesnt do what I want as my site is www.mydomain.com/blog and the temp site is www.weirdcrappyservername.com/~username/blog/ and this ~username still gets included in the path.

I hoped google might realise and the problem would go away, but its been 2 weeks now and it hasn't..

Any help much appreciated

whatnotbot

9:26 am on Jan 21, 2005 (gmt 0)

10+ Year Member



bump - can anyone help?