tags:

views:

38

answers:

2

I'm migrating a client from a proprietary system to a wordpress CMS-type platform.

His old site has years of indexed pages on Google.

I'm already using pretty URL's in Wordpress, but I can't replicate the structure exactly and migrate over the pages maintaining the URL.

We'd like to issue a proper HTTP 301 header to the new residence of these pages so that Google follows the links and reindexes them properly.

Is there any systemic (e.g., some sort of Apache config change) that I could do instead of a wordpress solution? If not, what are all my options for doing this?

A: 

You can use .htaccess

Create a .htaccess file in the top directory.

Add the following line

ErrorDocument 301 /error-docs/301.html

This will let you redirect to better error pages.

Bob Breznak
I'm not looking for custom error pages - I'm trying to 301 very specific URL's to a different URL.
Andy Baird
+2  A: 

Sure, you can use mod_alias from Apache to issue rewrites:

# Specific URLs
Redirect permanent /one http://example.com/two
# Regex-based URLs
RedirectMatch (.*)\.gif$ http://www.anotherserver.com$1.jpg
Jon Moore