Rewrite a dynamic URL to a new dynamic URL

Posted by Jmino14 on Stack Overflow See other posts from Stack Overflow or by Jmino14
Published on 2010-04-19T15:53:30Z Indexed on 2010/04/19 16:03 UTC
Read the original article Hit count: 631

I am new to the RewriteEngine and have not been able to find an answer to the following issue. I run an ecommerce site with an ever changing catalog of product skus. Our URLs are dynamic. The question is, what if I want to have a dynamic variable redirect to a different dynamic variable.

For instance, I want:

http://www.mydomain.com/product.jhtm?id=12345

to now go to:

www.mydomain.com/product.jhtm?id=78910

How can I do this through the .htaccess?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about mod-rewrite

Related posts about 301-redirect