PDA

View Full Version : How do I set up Redirect 301 in .htaccess



wkenny
12-14-2005, 06:27 PM
I moved some pages a few months ago and used a meta tag to redirect from old location to new. Yahoo is still indexing the old pages and I need to use Redirect 301 in a way that specifies individual pages.

I have tried

Redirect 301 /altea_estate_agents_01.htm http://www.estateagentsespana.com/costablanca/altea_estate_agents_01.htm

but the old page still loads. Both pages are on the same domain.

simonf
12-18-2005, 07:17 AM
Try make a dummy index.htm file with:

<script>
window.location='http://www.estateagentsespana.com/costablanca/altea_estate_agents_01.htm'
</script>

it seems to work.. however I do not know what the old pages looked like so I cannot tell..... :cool:

Twey
12-18-2005, 11:59 AM
Bad idea.
The statement to add you your .htaccess file is:

Redirect permanent /altea_estate_agents_01.htm http://www.estateagentsespana.com/costablanca/altea_estate_agents_01.htm

wkenny
12-18-2005, 03:48 PM
Thanks Twey. Works perfectly!