We have changed to osc shop from an old e-commerce site but we also need the old links for each product page should be 301-redirected to the correct productpage on the OSC shop. Now the links in google are pointing to the old site that is closed
The switch-case is in ASP-code since the last website was written in it but the php code
between <? ?> is correct. So all you need to do is translate the asp into php and add into the osc as absolutely the first piece of code that runs. If you have other code before you might have it send an
http-header and then you won't be able to resend the http-header later on.
301 are actually not something specific SEO but rather webbserver/webbsite-management specific.
Here is a page that explains how to make 301: [url removed, login to view]