My apologies if I’m double posting. But I was reading this thread about "redirects" for redirecting old URLs to new Modx URLs:
http://modxcms.com/forums/index.php/topic,13134.msg86845.html#msg86845
In the thread, there was some talk of that functionality being added to the Strict SEO URLs. But I can’t see whether it has or hasn’t? So perhaps someone could point me in the right direction? Let me explain what I’m needing to do :
We’re converting a site from a .NET based site to Modx. The old pages have the format
www.domain.dom/Default.aspx?pageid=21
What we have done is add a template variable to the new Modx pages recording the old "pageid" value.
So I’m looking for a way of stripping the pageid parameter value from querystring of the incoming URI, and using that value to lookup the Modx documents to see if there’s a document with a matching pageid value set in its legacyid template variable. If I find one, I want to redirect to that document and send a 301 response in the header. If I don’t, then I just let the 404 handler do its thing.
Is this something that Strict SEO URL’s can do? If so, where would I start with it?
Any help would be MUCH appreciated
Thanks,
Mark E