Wells-it.com - Web Hosting

Changed URL & would like Google to ignore old address without affecting sub-folders

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

They have: 82 posts

Joined: Jun 2002

Hi Folks

I wonder whether I can pick your collective brains with a query about Google please?

I’ve changed URLs and I would like to have Google completely ignore my old address

The complication is it’s only the domain name that’s changed.
The Site itself is still on the same host and the files are now in a sub-directory of the address above – which the new domain points to.

Therefore I wouldn’t want Google to stop cataloging the sub-directories, just the main index

I’ve revised the Source code on the page to read as follows and Google has now stopped linking to cached versions of the old Index.

However this effectively blank page is still high in its listings?
Is there some code I can add to ensure Google completely ignores my old Index Page without affecting any sub-folders

Cheers
Andrew

Busy's picture
Modrater

He has: 6,157 posts

Joined: May 2001

The robots rule will only take effect the next time your site is crawled, even then could be a week or three for the change to take effect

<?bhb if(broken){ echo("It wasn't me Smiling "); } ?>
Learn HTML the ez way - EzHTML.net

Some people are like slinkies, they dont really serve any purpose but they still bring a smile to your face when you push them down the stairs ...

They have: 52 posts

Joined: Dec 2002

What a about a 302 redirect?

They have: 82 posts

Joined: Jun 2002

The change took place over a month ago so Google should picked up the changes by now.

I think re-direct pages look tacky and I'd favour just droping the old address completely - especially as my new address is already being picked up.

chrishirst's picture

He has: 379 posts

Joined: Apr 2005

use a 301 server side redirect that way the backlink credit gets passed on. That's probably why the old page(s) are high in the listing and done properly no one ever sees a redirect.

Chris

Indifference will be the downfall of mankind, but who cares?
Venue Capacity Monitoring
Code Samples

They have: 82 posts

Joined: Jun 2002

Chris

How do I setup a "301 server side redirect" and can you please clarify what you mean when you say "when done properly no one ever sees a redirect".
Thanks

chrishirst's picture

He has: 379 posts

Joined: Apr 2005

For your site I don't know offhand.
It's running on Apache on Unix so you may or may not have .htaccess available. HR thread on 301 redirects

If a redirect is set up server side, it's done and dusted before anything is sent to the user agent so appears seamless to browsers, the only thing visible would be a different URI in the address bar.

Yahoo btw are now treating a 0 sec meta refresh as a 301 and anything more as a 302. No information how MSN and Google treat them as yet.

Chris

Indifference will be the downfall of mankind, but who cares?
Venue Capacity Monitoring
Code Samples

They have: 82 posts

Joined: Jun 2002

I created an .htaccess file with the following contents
redirect 301 /index.htm (url)
in the root directory of my site.

Trouble is the url I am redirecting to is contained within a subdirectory of my site.

When I go to the original url it is unable to reach the redirect page and the browser hangs. Am I right that the .htaccess file also applies to subdirectories off the root - if so am I getting an endless loop of redirects back to the index?

Your input gratefully received

Thanks

They have: 82 posts

Joined: Jun 2002

Anyone please?

They have: 82 posts

Joined: Jun 2002

taps microphone to check it's still working Confused

chrishirst's picture

He has: 379 posts

Joined: Apr 2005

You are going to have problems using .htaccess to redirect from an alias to another alias using the same HD space. Because the .htaccess is in the root folder it will apply site wide and across the aliases.
You may have more success by using absolute references in the redirects rather than relatives.

Chris

Indifference will be the downfall of mankind, but who cares?
Venue Capacity Monitoring
Code Samples

They have: 82 posts

Joined: Jun 2002

Thanks Chris I feared as much Sad
I've resorted back to a simple JS redirect on my old Index until I research something better.
Cheers

They have: 82 posts

Joined: Jun 2002

.