Page 1 of 1

URL redirect

Posted: Wed Sep 07, 2005 5:22 pm
by jwalsh
Hi,

I'd like to experiment with changing a hand entered url into a properly formatted dynamic url. Ex...

entered: http://www.example.com/username

redirect to: http://www.example.com/index.php?user=username

I think you could do this with the current path, and a meta-refresh. I'd prefer to stay away from mod_rewrite if possible. Anyone have experience with this?

Josh

Posted: Wed Sep 07, 2005 5:35 pm
by pickle
That's probably only going to be possible with .htaccess files. Unfortunately, I don't know much more than that, other than you'll need mod_rewrite.

Posted: Wed Sep 07, 2005 6:19 pm
by jwalsh
Ok, I guess I have to learn mod_rewrite then... how hard could it be ? :)

Posted: Wed Sep 07, 2005 7:25 pm
by feyd
there have been several examples of mod_rewrites that do this basic thing in the past here.