.htaccess - Rewrite rule for apache htaccess that checks for existence of certain GET params -


I can not find a solution ...

I have many dynamic page links

No, I want to write something for "tx_ttnews [tt_news]" values, that is, if it exists (or some other number) I want to redirect to a completely different URL.

I have only a small set, so basically I need a rule to "live is present" to redirect, like

tx_ttnews [tt_news] = 114 >> domain.com/asd.html tx_ttnews [Tt_news] = 93 >> otherdomain.org/ljasd.php

There is a mapping list, I could input line for each item, give me the correct code Do not know ....

Do anyone have any clue?

Anyone interested in my solution:

  Rewyctore % {QUERY_STRING} (tx_ttnews (. *) Tt_news (. *) = 114) Rewrite (. *) Http://www.domain.com/news/2010/07/my-new-news-item/? [L, R = 301]  

We have created several rewriting rules for all affected IDs (14 in this sample). Since each ID matches a certain URL in a different system, we had to write manual rewrites. Not beautiful but worked.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -