Forum Moderators: phranque
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