.htaccess 301 redirect rule -


can tell me how write rewrite rule: have many links like:

http://www.mavrica.com/index.php?eid=tx_cms_showpic&file=uploads%252fpics%252fmozic_05.jpg&width=800m&height=600m&bodytag=%253cbody%2520bgcolor%253d%2522black%2522%253e&wrap=%253ca%2520href%253d%2522javascript%253aclose()%253b%2522%253e%2520%257c%2520%253c%252fa%253e&md5=025892981ebd7f312b96276beb3ee194

i redirect of them http://www.mavrica.com/fotogalerije/

all links have in common first part (up tx_cms_showpic).

i tried following htaccess rules:

rewriterule /index.php?eid=tx_cms_showpic$ http://mavrica.com/fotogalerije/ [r=301] 

and with

redirectmatch 301 ^/index.php?eid=tx_cms_showpic(.*) http://www.mavrica.com/fotogalerije/ 

but none of them work.

what have missed out?

thanks help!

you need use %{query_string} capture and/or match query string part of url:

rewritecond %{the_request} ^[a-z]{3,}\s/+index\.php\?eid=tx_cms_showpic [nc] rewriterule ^ http://mavrica.com/fotogalerije/? [r=301,l] 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -