So we’ve hired a company to migrate our three websites from custom built CMS solutions to Typo3. One of our sites is still in classic ASP while the other two are in ASP.net 1.1 & 2.0. Typo3 wasn’t my choice, but the choice of those with the purse strings. Anyway, the migration of the sites is progressing but I have a problem that nobody seems to be able to answer. How do we handle page redirects?
For example, on our classic ASP site, we have a lot of tracking links from our newsletters (7 years worth) that have urls like: tracklink.asp?ID=23421 How can we handle these links on the new PHP setup that Typo3 is running on? I can build a PHP page to handle the classic tracking similar to the PHP page, but if you go to the .asp page in the example above, we get a 404 error, even if the page is there, since by default, the system doesn’t handle ASP pages. Is there a way to do some sort of redirect that will still pass the querystring variable to the new PHP tracking page? Also, we’ll need to do this with our .aspx pages on the .net sites as well.
Any ideas??
You could simply use the power of mod_rewrite to do this. Take a look at the htaccess file in the TYPO3 root directory and change it to your needs. What you want to do is sending an 311 Location changed permanenlty status code to the clients and redirecting them to the new URL.
I think this is a cleaner solution…