Need help with url rewrite with wildcard

After changing the url structure in a part of my site, I need help with some rewrites.

http://www.westeros.org/GoT/Characters/Entry/Ser_*

needs to become

http://www.westeros.org/GoT/Characters/Entry/*

(as in, removing the initial Ser_ from a set of entries, but leaving anything after that part – is that doable?)

Sure is


Options +FollowSymlinks -MultiViews

RewriteEngine On
RewriteRule ^GoT/Characters/Entry/Ser_(.*)$ GoT/Characters/Entry/$1 [L,R=301]

:slight_smile:

Hmm, that doesn’t seem to work. Clicking one of the outdated links doesn’t lead to any rewriting at all.

Ah, fixed. I had to get less specific because of an earlier rewrite that it conflicted with. Thanks!