I noticed in the DrupalCon DC video that Mike talked about being able to do .htaccess URL redirects based on migrated nodes. I tried to follow his instructions, but it doesn't seem to be working for me. My legacy paths are a little bit different though. Here's what the legacy URLs look like:
/News/show_news.asp?id=4271
New Pathauto URLs look like:
/news/[title-raw]
Here's what my .htaccess code looks like right now:
# Rewrite migrated news article URLs (Migrate module)
# Old format: /News/show_news.asp?id=4271
RewriteRule ^News/show_news.asp?id=(0-9+)$ /migrate/xlat/$1 [NC,R=301,L]Can anyone see what I might be doing wrong?
Comments
Comment #1
attheshow commentedComment #2
moshe weitzman commentedI didn't investigate, but I would think you also have to inform xlat about which migration you are speaking about. Or else it can't know which map table holds the answer for sourceID=4271
Comment #3
attheshow commentedOk, I finally got it figured out. It was the query string in my legacy URL that was giving me problems. In case anyone else runs into the same issue, here's what my final redirect rule looks like: