I’m moving servers and cleaning up the url’s a bit at the same time.
current urls are:
secure.mydomain.com/onlinestore/product.php?productid=12345
changing it to:
mydomain.com/product.php?productid=12345
wondering if I can do something in htaccess so if someone clicks an old link/bookmark they get redirected to the new page.
Not worried about making the dynamic part be SEO friendly just yet.
Try this. It forces a redirect with a “moved permanently” header.
Edit was missing some
/in theRewriteCondEdit2 Redirect wasn’t going to the correct domain