Serve Magento page in place of old site’s .aspx pages (without redirect)
Asked by: Greg Seedsman 440 views Questions
We have a current site build in .aspx that has excellent SEO. We are building a replacement site in Magento and desperately want to keep some old URLs and serve the new Magento page, without doing any redirecting.
eg. Old site URL /Diamond-Rings/default.aspx does not exist on new server but must instead serve valid Magento page /jewellery/rings/diamond.html
Our Apache web server is set up to handle .aspx extension by PHP.
If I use an Apache URL rewrite method I end up with a 301 redirect which I’d rather avoid for SEO purposes (or am I mistaken and this IS the best way and it doesn’t 301 or 302 ?).
What I’m hoping is that a kind of master index.aspx or index.php file sitting in the root folder can detect that the URL contains “.aspx” and then using a file or a DB lookup find the URL we’d like to serve and somehow pass that info to Magento. Perhaps replacing the CGI.SCRIPT_NAME or the likes then letting Magento process as per normal.
Hope that makes sense.
