htaccess Rewriterule to make one query part of another

Posted by Dan T on Stack Overflow See other posts from Stack Overflow or by Dan T
Published on 2010-06-08T13:18:11Z Indexed on 2010/06/08 13:22 UTC
Read the original article Hit count: 178

Filed under:
|
|

I have a url /embed?t=X and I want to redirect it to /page/embed/X where X is any number of alpha numeric characters.

I know must redirect rules go the other way but for the purpose of the applciation I need to reverse it.

Any ideas?

I have tried things like: RedirectRule ^embed\?t\=([a-zA-Z0-9]+)$ /page/embed/$1

but with no luck.

© Stack Overflow or respective owner

Related posts about mod-rewrite

Related posts about rewriterule