[thelist] mod rewriting question

Bill Moseley moseley at hank.org
Tue May 15 08:49:44 CDT 2007

On Tue, May 15, 2007 at 07:56:48AM -0500, Tom Dell'Aringa wrote:
> Hey folks,
> I'm thinking this should be way easier than it seems, but I am totally
> striking out. For my new drupal site, I have a bunch of urls from the old
> site that have changed on the new site. The new site uses rewrite to write
> "clean" urls as well. I've been all over the drupal site, but honestly the
> info there has done nothing but confuse the issue. What I want to do is
> seemingly pretty simple. I have a list of all the urls I want to 301
> redirect to the corresponding new clean urls. For example:
> The old URL
> http://www.crossandthrone.com/2005/01/01/happy-new-year/
> Needs to be 301 redirected to:
> http://www.crossandthrone.com/articles/happy-new-year/

Why do you need to use mod_rewrite?  Could you use Redirect?

Redirect permanent /2005/01/01/happy-new-year  http://www.crossandthrone.com/articles/happy-new-year

Bill Moseley
moseley at hank.org

More information about the thelist mailing list