Does anyone know how to successfully 301 redirect a dynamic URL to a new non-dynamic URL using .htaccess? I cannot do anything “on-page” like HTTP meta refresh because the original pages were on a proprietary platform and recreating a directory and URL structure that mirrors the old site did not work. The old site was on IIS and the new one is apache (WordPress). Or if you know of a WP plugin that would 301 redirect. Example of a URL is sitename.com/DirectoryName/default.aspx?PageID=123456 and it needs to be redirected to sitename.com/pagename. Unfortunately, dynamic URL’s can’t be redirected in any way I’ve found in the .htaccess file. I can redirect ALL URL’s in that directory to a single page, but I need several individual pages each redirected to their new corresponding index page. Help?
I need help 301 redirecing a dynamic URL in .htaccess
Advertisement



