Htaccess redirect - please help!

Hello…

Here’s my htaccess:


Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteOptions MaxRedirects=100

Redirect 301 /test.html http://www.fruition.co.il/lego_tree.php?actions=show&id=71&instance_id=10

Redirect 301 /lego_tree.php?actions=show&id=71&instance_id=99 http://www.fruition.co.il/lego_tree.php?actions=show&id=71&instance_id=10

Redirect 301 /lego_tree\\.php\\?actions=show&id=71&instance_id=98 http://www.fruition.co.il/lego_tree.php?actions=show&id=71&instance_id=10

1st redirect works well. Other two don’t work at all. Any ideas? Would appreciate any help.

Thanks!

moopyy,

I don’t believe that mod_alias (Redirect and its subs) allows you to read the query string. To do that, you probably need mod_rewrite (look at the tutorial linked in my signature).

Regards,

DK

Thank you dklynn!

I was looking at your content and got even more confused. Can you please write down exactly what I need to do?

Thanks!

moopyy,

Sorry, I do not do free coding - I consider that “care and feeding of ‘script kiddies.’” I prefer to “teach.”

Please reread the tutorial, make an attempt and I’ll explain how to improve your code to the point it works exactly as required.

Regards,

DK