I need to rewrite a dynamic URL. The content myurl and mytext is always different and should be insert in the “text” and “url” from the Twitter string.
This is the string:
http://example.com/share/?myurl=http%3A%2F%2Fwww.example.com&mytext=helloworld
/* forward to: */
http://twitter.com/intent/tweet?related=Example%3Aname&text=helloworld&url=http%3A%2F%2Fwww.example.com&via=example
How can that be made? (I browsed the .htaccess suggestions but couldn’t find a solution for my specific problem.)
It will be more efficient to handle it with rewrite Rules.
If you want this to be permanent redirect then replace R with R=301.
With permanent redirects , these links will always be redirected by browser and your server will have to deal with less traffic if that is desired.