Forum Moderators: phranque

Message Too Old, No Replies

.htaccess Redirect not passing query string

         

CernyM

10:13 pm on Sep 29, 2005 (gmt 0)

10+ Year Member



Currently, I have traffic coming in in the form

www.example.com/mystore/index.html?parm1=x&parm2=y&parm3=z

I need to move this traffic from the index.html to index.php

www.example.com/mystore/index.php?parm1=x&parm2=y&parm3=z

However, when I use .htaccess Redirect

Redirect /mystore/index.html http://www.example.com/mystore/index.php

I lose all of the querystring parameters. Is there a way to accomplish what I'm trying to do in .htaccess?

jdMorgan

1:02 am on Sep 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, use mod_rewrite instead of mod_alias Redirect.

Jim