RedirectMatch and .htaccess

I’ve noticed that on the Sixapart website, their track back URLs look like this:

I’ve been trying to recreate this style of URL using RedirectMatch. I was hoping that it would help me accomplish the following:

if given cleaned up url:
redirect to original url:

When I ping an entry using the cleaned up URL, Movable Type says that the ping was successful, but checking the trackbacks says it wasn’t. If I paste the original url into my browser, Movable Type will tell me that I need a source url. Using the cleaned up url gives me a 404.

Here is what I have in my .htaccess file:

RedirectMatch 301 ^.*/trackback/(\d+)$$1

I put my regex in a perl script and it did what I wanted it to, but for some reason, this isn’t working. Any advice?

According to Apache FAQ, “We implement a simple subset of Perl’s regex support” and that means \d doesn’t work. Use a character class instead and you’re good to go.

:cool: Perl / MySQL / HTML+CSS

Your advice worked like a charm. Thanks!

Unfortunately, Movable Type doesn’t appear to be intelligent enough to understand that it should continue after it receives the 301 status code. My browser(s) on the other hand, handle everything as I’d like it to be handled. Oh well. You live, you learn.