.htaccess 301 redirect rule -
can tell me how write rewrite rule: have many links like:
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
Post a Comment