Page is a not externally linkable
jdMorgan - 9:51 pm on May 31, 2008 (gmt 0)
Using this method, it appears that only a single RewriteRule will be needed. [added] If you are not changing domain names, then I recommend that you read and understand that cited thread carefully before rushing off to make a change. It is likely that the method in that thread is exactly what you need to do, and if you simply do a redirect (as described here in this thread), you'll have trouble. You say "the new server uses URLs like this," but in fact, the server doesn't care what the URL is. If you use the wrong method, then the SEF plug-in code that you very likely have on that new server and your redirect will likely interfere with each other, causing an "infinite" rewrite/redirect loop. And in that case, the method in the cited thread is precisely what you need to fix the problem. The SEF plug-in would be "step 2" in the cited thread.[/added] Jim [edited by: jdMorgan at 10:00 pm (utc) on May 31, 2008]
Very well, then use mod_rewrite, and a RewriteCond to examine the query string. Append a "?" to the substitution URL to clear this incoming query string, after back-referencing the values you need in the substitution URL.